From 2714224d8814e011254c0f7482ffb592cf4983fc Mon Sep 17 00:00:00 2001 From: Calvo Date: Mon, 12 Sep 2022 13:34:18 +0200 Subject: [PATCH] Fix tactical view counting duplicated modules when agents have secodary groups --- pandora_console/include/functions_tactical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_tactical.php b/pandora_console/include/functions_tactical.php index 3b50ba5476..dec75ae13e 100644 --- a/pandora_console/include/functions_tactical.php +++ b/pandora_console/include/functions_tactical.php @@ -416,7 +416,7 @@ function tactical_get_data( } else { $result_list = db_get_all_rows_sql( sprintf( - 'SELECT COUNT(*) as contado, estado + 'SELECT COUNT(DISTINCT(tam.id_agente_modulo)) as contado, estado FROM tagente_estado tae INNER JOIN tagente ta ON tae.id_agente = ta.id_agente