From a982062523cacd35e8a0e3a7b460fabbaecf75be Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Tue, 22 Nov 2011 12:49:24 +0000 Subject: [PATCH] 2011-11-22 Juan Manuel Ramon * godmode/alerts/configure_alert_template.php: Fixed template update. Thank you to Manuel Arostegui for the patch! git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5151 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/alerts/configure_alert_template.php | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 179b330456..2a4cf88547 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-11-22 Juan Manuel Ramon + + * godmode/alerts/configure_alert_template.php: Fixed template + update. Thank you to Manuel Arostegui for the patch! + 2011-11-17 Juan Manuel Ramon * operation/snmpconsole/snmp_view.php: Added new free search and diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php index 5c56568033..ec7f5590ea 100644 --- a/pandora_console/godmode/alerts/configure_alert_template.php +++ b/pandora_console/godmode/alerts/configure_alert_template.php @@ -190,12 +190,7 @@ function update_template ($step) { 'matches_value' => $matches, 'priority' => $priority); - if (!$name || $name_check) { - $result = ''; - } - else { - $result = alerts_update_alert_template ($id,$values); - } + $result = alerts_update_alert_template ($id,$values); } elseif ($step == 2) { $monday = (bool) get_parameter ('monday');