From f123bac91592536c856a03152dd03b2e0cb29061 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 10 Sep 2018 12:58:10 +0200 Subject: [PATCH] fixed total counters grouw view --- pandora_console/include/functions_groupview.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_groupview.php b/pandora_console/include/functions_groupview.php index 4f86497563..15b4d577bf 100644 --- a/pandora_console/include/functions_groupview.php +++ b/pandora_console/include/functions_groupview.php @@ -110,12 +110,14 @@ function groupview_get_all_counters($tree_group) { 0 AS _id_, '' AS _icon_ FROM $table ta - WHERE ta.id_agente - IN ( + WHERE ta.disabled = 0 + AND ta.id_agente IN ( SELECT ta.id_agente FROM $table ta LEFT JOIN $table_sec tasg ON ta.id_agente = tasg.id_agent - WHERE 1=1 $group_acl + WHERE ta.disabled = 0 + $group_acl + GROUP BY ta.id_agente ) "; $data = db_get_row_sql($sql); @@ -138,6 +140,8 @@ function groupview_get_groups_list($id_user = false, $access = 'AR', $is_not_pag 'statusModule' => -1, 'groupID' => 0, 'tagID' => 0, + 'show_not_init_agents' => 1, + 'show_not_init_modules' => 1 )); $info = $tree_group->getArray(); $info = groupview_plain_groups($info);