Skip to content

Commit

Permalink
Merge pull request #18898 from seamuslee001/dev_core_2147
Browse files Browse the repository at this point in the history
dev/core#2147 Switch the groups search field on Simple search back fr…
  • Loading branch information
seamuslee001 authored Nov 2, 2020
2 parents ef4761b + 5a56465 commit 40db238
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CRM/Contact/Form/Search/Basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ public function buildQuickForm() {

// 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',
]);
}

Expand Down

0 comments on commit 40db238

Please sign in to comment.