From 07a341d4c25e44ed9c4a8f4ea0e795caff3dfd6e Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Thu, 31 May 2012 12:22:44 +0000 Subject: [PATCH] 2012-05-31 Juan Manuel Ramon * godmode/reporting/reporting_builder.php: Fixed error updating report items (agent and module were lost if you update item report). Merged bugfix from branches. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/godmode/reporting/reporting_builder.php | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7594f0e5a6..49c3e5e184 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2012-05-31 Juan Manuel Ramon + + * godmode/reporting/reporting_builder.php: Fixed error updating + report items (agent and module were lost if you update item report). + + Merged bugfix from branches. + 2012-05-31 Vanessa Gil * godmode/agentes/agent_template.php: Fixed bug: adding diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index 06d35f1fa6..2b17078d64 100644 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -428,12 +428,15 @@ switch ($action) { $values['id_agent'] = get_parameter('id_agent'); $values['id_gs'] = get_parameter('id_custom_graph'); $values['id_agent_module'] = ''; - if (isset($type)) { - if (($type == 'alert_report_agent') or ($type == 'event_report_agent')) + if (isset($values['type'])) { + if (($values['type'] == 'alert_report_agent') or ($values['type'] == 'event_report_agent')) $values['id_agent_module'] = ''; else $values['id_agent_module'] = get_parameter('id_agent_module'); } + else + $values['id_agent_module'] = get_parameter('id_agent_module'); + $values['only_display_wrong'] = get_parameter('checkbox_only_display_wrong'); $values['monday'] = get_parameter('monday', 0); $values['tuesday'] = get_parameter('tuesday', 0);