From 10916a956a81c61919dc8bd0a00e6a637c3911df Mon Sep 17 00:00:00 2001 From: Vangelis Pantazis Date: Tue, 22 Dec 2020 15:29:20 +0000 Subject: [PATCH] Rework on the detection of new vs existing smartgroup --- CRM/Contact/Form/Search/Builder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Search/Builder.php b/CRM/Contact/Form/Search/Builder.php index 0eccbcb504..f10f2c199f 100644 --- a/CRM/Contact/Form/Search/Builder.php +++ b/CRM/Contact/Form/Search/Builder.php @@ -51,7 +51,9 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search { // Initialize new form if (!$this->_blockCount) { $this->_blockCount = 4; - $this->set('newBlock', 1); + if (!$this->_ssID) { + $this->set('newBlock', 1); + } } //get the column count -- 2.25.1