fix bug in dynamic report filter group functionality: not applying recursion correctly

This commit is contained in:
alejandro-campos 2019-10-29 12:31:23 +01:00
parent 758804e5de
commit cf0321846f
1 changed files with 2 additions and 2 deletions

View File

@ -1035,11 +1035,11 @@ function agents_get_group_agents(
foreach ($id_group as $parent) {
$id_group = array_merge(
$id_group,
groups_get_id_recursive($parent, true)
groups_get_id_recursive($parent, false)
);
}
} else {
$id_group = groups_get_id_recursive($id_group, true);
$id_group = groups_get_id_recursive($id_group, false);
}
// Check available groups for target user only if asking for 'All' group.