Added Group by in tree view

This commit is contained in:
Daniel Maya 2019-11-21 10:22:51 +01:00
parent 23e64ab781
commit 791454ee87
1 changed files with 2 additions and 3 deletions

View File

@ -1075,8 +1075,6 @@ class Tree
ON ta.id_agente = tasg.id_agent ON ta.id_agente = tasg.id_agent
LEFT JOIN talert_template_modules tatm LEFT JOIN talert_template_modules tatm
ON tatm.id_agent_module = tam.id_agente_modulo ON tatm.id_agent_module = tam.id_agente_modulo
AND tatm.id_alert_template = 1
OR tatm.id_alert_template = NULL
$inner $inner
WHERE tam.disabled = 0 AND ta.disabled = 0 WHERE tam.disabled = 0 AND ta.disabled = 0
$condition $condition
@ -1086,6 +1084,7 @@ class Tree
$agent_status_filter $agent_status_filter
$module_search_filter $module_search_filter
$tag_condition $tag_condition
GROUP BY tam.id_agente_modulo
ORDER BY tam.nombre ASC, tam.id_agente_modulo ASC"; ORDER BY tam.nombre ASC, tam.id_agente_modulo ASC";
return $sql; return $sql;