diff --git a/pandora_console/godmode/groups/group_list.php b/pandora_console/godmode/groups/group_list.php index 7856f68665..1de2ed88ec 100644 --- a/pandora_console/godmode/groups/group_list.php +++ b/pandora_console/godmode/groups/group_list.php @@ -92,6 +92,7 @@ if (is_ajax() === true) { if ($get_group_agents === true) { ob_clean(); $id_group = (int) get_parameter('id_group'); + $id_os = (int) get_parameter('id_os', 0); $disabled = (int) get_parameter('disabled', 0); $search = (string) get_parameter('search', ''); $recursion = (int) get_parameter('recursion', 0); @@ -151,6 +152,10 @@ if (is_ajax() === true) { $filter['status'] = $status_agents; } + if ($id_os !== 0) { + $filter['id_os'] = $id_os; + } + $_sql_post = ' 1=1 '; if ($show_void_agents == 0) { $_sql_post .= ' AND id_agente IN (SELECT a.id_agente FROM tagente a, tagente_modulo b WHERE a.id_agente=b.id_agente AND b.delete_pending=0) AND \'1\'';