From 5a56465c40c1d6c1488e59bb3ece973502b1e185 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 2 Nov 2020 12:31:09 +1100 Subject: [PATCH] dev/core#2147 Switch the groups search field on Simple search back from select2 to normal select --- CRM/Contact/Form/Search/Basic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contact/Form/Search/Basic.php b/CRM/Contact/Form/Search/Basic.php index 537e19e0bd..f7fa2e6485 100644 --- a/CRM/Contact/Form/Search/Basic.php +++ b/CRM/Contact/Form/Search/Basic.php @@ -49,14 +49,13 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search { // add select for groups // Get hierarchical listing of groups, respecting ACLs for CRM-16836. - $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($this->_group, NULL, '- '); + $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($this->_group, NULL, '- ', TRUE); if (!empty($searchOptions['groups'])) { $this->addField('group', [ 'entity' => 'group_contact', 'label' => ts('in'), 'placeholder' => ts('- any group -'), 'options' => $groupHierarchy, - 'type' => 'Select2', ]); } -- 2.25.1