From cf0321846ff035077fcb363e3d4a032f945a8fda Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 29 Oct 2019 12:31:23 +0100 Subject: [PATCH] fix bug in dynamic report filter group functionality: not applying recursion correctly --- pandora_console/include/functions_agents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 826ca971c5..671a831504 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -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.