From 08854e15caf8d0bb047c66e5c5e72cd9560c3acf Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 23 Dec 2010 11:20:43 +0000 Subject: [PATCH] 2010-12-23 Ramon Novoa * operation/agentes/alerts_status.php: Fixed alert search filters. Fixes bug #3140249. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/agentes/alerts_status.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ddfa8751fb..ef902a3072 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-12-23 Ramon Novoa + + * operation/agentes/alerts_status.php: Fixed alert search + filters. Fixes bug #3140249. + 2010-12-22 Miguel de Dios * include/functions_reporting.php: cleaned source code style. diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php index fad4ae8949..4ebb6b6049 100644 --- a/pandora_console/operation/agentes/alerts_status.php +++ b/pandora_console/operation/agentes/alerts_status.php @@ -190,9 +190,8 @@ if($filter_standby == 'standby_on') { $filter_alert['disabled'] = $filter; $filter_alert['standby'] = '0'; }else { - $filter_alert = $filter; + $filter_alert['disabled'] = $filter; } - $alerts['alerts_simple'] = get_agent_alerts_simple ($agents, $filter_alert, $options_simple, $whereAlertSimple, false, false, $idGroup); $countAlertsSimple = get_agent_alerts_simple ($agents, $filter, false, $whereAlertSimple, false, false, $idGroup, true);