From: jitendrapurohit Date: Fri, 28 Oct 2016 09:34:18 +0000 (+0530) Subject: Fix relative date saved search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8558eb81977791f24f7b4338384d53f97e40aeaf;p=civicrm-core.git Fix relative date saved search --- diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php index 8c810f6150..09242f2925 100644 --- a/CRM/Contact/BAO/SavedSearch.php +++ b/CRM/Contact/BAO/SavedSearch.php @@ -110,6 +110,7 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch { if (strpos($id, '_date_low') !== FALSE || strpos($id, '_date_high') !== FALSE) { $entityName = strstr($id, '_date', TRUE); if (!empty($result['relative_dates']) && array_key_exists($entityName, $result['relative_dates'])) { + $result[$id] = NULL; $result["{$entityName}_date_relative"] = $result['relative_dates'][$entityName]; } else {