Commit 032e3ff0 authored by ufundo's avatar ufundo

Allow all descendants of the selected parent group (not just direct children)

parent facfb7ae
......@@ -217,8 +217,9 @@ class ContactInGroupFilter extends AbstractFieldFilterHandler {
$api_params['is_active'] = 1;
if ($this->parent_group_id) {
$api_params['parents']['='] = $this->parent_group_id;
}
$childGroupIds = \CRM_Contact_BAO_GroupNesting::getDescendentGroupIds([$this->parent_group_id], FALSE);
$api_params['parents']['IN'] = array_merge( [ $this->parent_group_id ] , $childGroupIds);
}
$form->add('select', "{$fieldSpec->alias}_op", E::ts('Operator:'), $operations, true, [
'style' => $minWidth,
......
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