From 5a4479832411425ed50fd64278f373a86b6b2e00 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 5 Feb 2022 14:43:41 +1300 Subject: [PATCH] Enotice fix --- CRM/Contact/Form/Search.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CRM/Contact/Form/Search.php b/CRM/Contact/Form/Search.php index 1345c23309..a737667a8b 100644 --- a/CRM/Contact/Form/Search.php +++ b/CRM/Contact/Form/Search.php @@ -429,11 +429,8 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { $ssID = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Group', $this->_groupID, 'saved_search_id'); $this->assign('ssID', $ssID); - //get the saved search edit link - if ($ssID) { - $this->_ssID = $ssID; - $this->assign('editSmartGroupURL', CRM_Contact_BAO_SavedSearch::getEditSearchUrl($ssID)); - } + $this->_ssID = $ssID; + $this->assign('editSmartGroupURL', $ssID ? CRM_Contact_BAO_SavedSearch::getEditSearchUrl($ssID) : FALSE); // Set dynamic page title for 'Show Members of Group' $this->setTitle(ts('Contacts in Group: %1', [1 => $this->_group[$this->_groupID]])); -- 2.25.1