From 421197f66fb6201612eb5547f5052f0e6238f507 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 4 Feb 2013 09:55:38 +0000 Subject: [PATCH] 2013-02-04 Miguel de Dios * godmode/alerts/configure_alert_action.php: fixed sustitution the values in the macros when load a action. Fixes: #3603125 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../godmode/alerts/configure_alert_action.php | 19 +++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a2f9f2301a..9f9e36b9a4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-02-04 Miguel de Dios + + * godmode/alerts/configure_alert_action.php: fixed sustitution the + values in the macros when load a action. + + Fixes: #3603125 + 2013-02-04 Miguel de Dios * godmode/alerts/alert_list.list.php, diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 377f749fdd..472f064112 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -97,7 +97,7 @@ if ($id) { $action = alerts_get_alert_action ($id); $name = $action['name']; $id_command = $action['id_alert_command']; - + $group = $action ['id_group']; $action_threshold = $action ['action_threshold']; } @@ -137,9 +137,10 @@ $table->data[3][0] = __('Threshold'); $table->data[3][1] = html_print_input_text ('action_threshold', $action_threshold, '', 5, 7, true); $table->data[3][1] .= ' '.__('seconds') . ui_print_help_icon ('action_threshold', true, ui_get_full_url(false, false, false, false)); $table->data[4][0] = __('Command preview'); -$table->data[4][1] = html_print_textarea ('command_preview', 10, 30, '', 'disabled="disabled"', true); +$table->data[4][1] = html_print_textarea ('command_preview', 10, 30, '', + 'disabled="disabled"', true); $row = 5; -for($i=1;$i<=10;$i++) { +for ($i=1; $i<=10; $i++) { $table->data['field'.$i][0] = html_print_image('images/spinner.gif',true); $table->data['field'.$i][1] = html_print_image('images/spinner.gif',true); // Store the value in a hidden to keep it on first execution @@ -168,8 +169,7 @@ ui_require_javascript_file ('pandora_alerts');