Fix tactical view counting duplicated modules when agents have secodary groups

This commit is contained in:
Calvo 2022-09-12 13:34:18 +02:00
parent 06be85e044
commit 2714224d88
1 changed files with 1 additions and 1 deletions

View File

@ -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