From 6fec150f74f013d61144f7a367d1b46c0ce97508 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 11 Nov 2013 12:34:37 +0000 Subject: [PATCH] 2013-11-11 Sergio Martin * include/functions_treeview.php: Fix the agents query in tree view of tags to avoid duplicated agents for incident #349 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9047 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_treeview.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d968d57f3f..c42c78e0e3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-11-11 Sergio Martin + + * include/functions_treeview.php: Fix the agents query in + tree view of tags to avoid duplicated agents for + incident #349 + 2013-11-07 Sergio Martin * include/functions_events.php: Change the way of store diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 798043d2ee..c154b950c0 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -1211,7 +1211,7 @@ function treeview_getFirstBranchSQL ($type, $id, $avariableGroupsIds, $statusSel $sql .= ' AND tagente.disabled = 0'. $search_sql; - $sql .= ' ORDER BY tagente.nombre COLLATE utf8_general_ci ASC'; + $sql .= ' GROUP BY tagente.id_agente ORDER BY tagente.nombre COLLATE utf8_general_ci ASC'; break; }