From 5aa7bc38d6928de812969319c033db1035f50eea Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 21 Sep 2016 12:58:44 +0530 Subject: [PATCH] fix defaults for other entities too --- CRM/Contact/BAO/SavedSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php index de10219c4b..90f4ddc530 100644 --- a/CRM/Contact/BAO/SavedSearch.php +++ b/CRM/Contact/BAO/SavedSearch.php @@ -114,7 +114,7 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch { } if (strpos($id, '_date_low') !== FALSE || strpos($id, '_date_high') !== FALSE) { $result[$id] = date($dateFormat, strtotime($value)); - $entityName = CRM_Utils_Array::value(0, explode('_', $id)); + $entityName = strstr($id, '_date', TRUE); $result["{$entityName}_date_relative"] = 0; } else { -- 2.25.1