From e979ac2d2c7deeb3c42b402c4a2489481d1fae71 Mon Sep 17 00:00:00 2001 From: Saurabh Batra Date: Fri, 4 Mar 2016 13:53:44 +0530 Subject: [PATCH] Fix tiny error in case search --- CRM/Case/BAO/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.25.1