From 8558eb81977791f24f7b4338384d53f97e40aeaf Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 28 Oct 2016 15:04:18 +0530 Subject: [PATCH] Fix relative date saved search --- CRM/Contact/BAO/SavedSearch.php | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.25.1