Commit 34b70d87 authored by ufundo's avatar ufundo

Fix parent group filtering to work better with addEntityRef

parent 7f0e2cb9
......@@ -217,8 +217,7 @@ class ContactInGroupFilter extends AbstractFieldFilterHandler {
$api_params['is_active'] = 1;
if ($this->parent_group_id) {
$childGroupIds = \CRM_Contact_BAO_GroupNesting::getDescendentGroupIds([$this->parent_group_id], FALSE);
$api_params['id']['IN'] = $childGroupIds;
$api_params['parents']['='] = $this->parent_group_id;
}
$form->add('select', "{$fieldSpec->alias}_op", E::ts('Operator:'), $operations, true, [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment