From 46ed6092bc0fd6e57c304bc0da51f8d50be34a9d Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 10 Oct 2011 14:25:42 +0000 Subject: [PATCH] 2011-10-10 Juan Manuel Ramon * operation/agentes/estado_monitores.php: Fixed query to add module group in the agrupation. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/estado_monitores.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ded1a04387..53b4e0adae 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-10-10 Juan Manuel Ramon + + * operation/agentes/estado_monitores.php: Fixed query to add module + group in the agrupation. + 2011-10-10 Juan Manuel Ramon * godmode/agentes/modificar_agente.php: Filter in this view is diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php index 3d7949c9fb..b02fc2e65b 100644 --- a/pandora_console/operation/agentes/estado_monitores.php +++ b/pandora_console/operation/agentes/estado_monitores.php @@ -156,7 +156,7 @@ switch ($config["dbtype"]) { switch ($config["dbtype"]) { case "mysql": case "postgresql": -/* $sql = sprintf (" + /* $sql = sprintf (" SELECT * FROM tagente_estado, tagente_modulo LEFT JOIN tmodule_group @@ -173,7 +173,7 @@ switch ($config["dbtype"]) { LEFT JOIN tmodule_group ON tagente_modulo.id_module_group = tmodule_group.id_mg WHERE tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND tagente_estado.utimestamp != 0 - ORDER BY %s %s", $id_agente, $order['field'], $order['order']); + ORDER BY tagente_modulo.id_module_group , %s %s", $id_agente, $order['field'], $order['order']); break; // If Dbms is Oracle then field_list in sql statement has to be recoded. See oracle_list_all_field_table() case "oracle":