Merge branch 'ent-9381-13999-problema-tactical-view-causada-por-grupos-secundarios' into 'develop'

Fix tactical view counting duplicated modules when agents have secodary groups

See merge request artica/pandorafms!5100
This commit is contained in:
Daniel Rodriguez 2022-09-19 11:10:16 +00:00
commit 2657faab02
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