Skip to content
Snippets Groups Projects
Unverified Commit 40db2383 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18898 from seamuslee001/dev_core_2147

#2147 Switch the groups search field on Simple search back fr…
parents ef4761bb 5a56465c
No related branches found
No related tags found
No related merge requests found
......@@ -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',
]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment