From 26481b61da63b26620b06f405f00b57d09c67423 Mon Sep 17 00:00:00 2001 From: vgilc Date: Wed, 18 May 2011 09:40:21 +0000 Subject: [PATCH] 2011-05-18 Vanessa Gil * include/functions_agents.php: Fixed filter Group in Alert Detail. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_agents.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0b98322df8..3246d81daf 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-05-18 Vanessa Gil + + * include/functions_agents.php: Fixed filter Group in Alert Detail. + + 2011-05-17 Juan Manuel Ramon * include/graphs/fgraph.php diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 694a1c52a0..586f492150 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -151,7 +151,8 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f $filter .= db_format_array_where_clause_sql ($options); } - if (($id_agent === false) && ($idGroup !== false)) { + if (($id_agent !== false) && ($idGroup !== false)) { + if ($idGroup != 0) { //All group $subQuery = 'SELECT id_agente_modulo FROM tagente_modulo