From: Saurabh Batra Date: Fri, 4 Mar 2016 08:23:44 +0000 (+0530) Subject: Fix tiny error in case search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e979ac2d2c7deeb3c42b402c4a2489481d1fae71;p=civicrm-core.git Fix tiny error in case search --- diff --git a/CRM/Case/BAO/Query.php b/CRM/Case/BAO/Query.php index 76bad1fc96..6f72cfefd6 100644 --- a/CRM/Case/BAO/Query.php +++ b/CRM/Case/BAO/Query.php @@ -764,10 +764,10 @@ case_relation_type.id = case_relationship.relationship_type_id )"; $errors['case_from_date_range_error'] = ts('Please check that your Case Start Date Range is in correct chronological order.'); } - $lowDate = strtotime($fields['case_to_end_date_low']); - $highDate = strtotime($fields['case_to_end_date_high']); + $lowDate1 = strtotime($fields['case_to_end_date_low']); + $highDate1 = strtotime($fields['case_to_end_date_high']); - if ($lowDate > $highDate) { + if ($lowDate1 > $highDate1) { $errors['case_to_date_range_error'] = ts('Please check that your Case End Date Range is in correct chronological order.'); } return empty($errors) ? TRUE : $errors;