From 852cda66f5666ff9750b71bd1a1cb0d5e1926286 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Fri, 30 Dec 2016 16:12:25 +0530 Subject: [PATCH] CRM-19624: Exclude / Include by privacy radio buttons gets reset on Smartgroup re-editing --- CRM/Contact/Form/Search/Advanced.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/Form/Search/Advanced.php b/CRM/Contact/Form/Search/Advanced.php index ffcb35ab79..c582e79f7b 100644 --- a/CRM/Contact/Form/Search/Advanced.php +++ b/CRM/Contact/Form/Search/Advanced.php @@ -194,16 +194,16 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { * the default array reference */ public function setDefaultValues() { - $defaults = $this->_formValues; + $defaults = array_merge($this->_formValues, array( + 'privacy_toggle' => 1, + 'operator' => TRUE, + )); $this->normalizeDefaultValues($defaults); if ($this->_context === 'amtg') { $defaults['task'] = CRM_Contact_Task::GROUP_CONTACTS; } - $defaults['privacy_toggle'] = 1; - $defaults['operator'] = 'AND'; - return $defaults; } -- 2.25.1