From 266a12316e152b1581e335cc060f7e9dd5cdff65 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 22 May 2012 16:28:05 +0000 Subject: [PATCH] 2012-05-22 Sergio Martin * godmode/agentes/module_manager_editor_common.php: Fixed desactivation of history data when edit a policy module git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6336 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/agentes/module_manager_editor_common.php | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ea15e7e9b5..00b44ee261 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-05-22 Sergio Martin + + * godmode/agentes/module_manager_editor_common.php: Fixed + desactivation of history data when edit a policy module + 2012-05-22 Sergio Martin * include/functions_reporting.php diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index be58569549..8ee91e69f2 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -204,7 +204,14 @@ $table_simple->data[3][0] = __('FF threshold').' ' . ui_print_help_icon ('ff_thr $table_simple->data[3][1] = html_print_input_text ('ff_event', $ff_event, '', 5, 15, true, $disabledBecauseInPolicy); $table_simple->data[3][2] = __('Historical data'); -$table_simple->data[3][3] = html_print_checkbox ("history_data", 1, $history_data, true, $disabledBecauseInPolicy); +if($disabledBecauseInPolicy) { + // If is disabled, we send a hidden in his place and print a false checkbox because HTML dont send disabled fields and could be disabled by error + $table_simple->data[3][3] = html_print_checkbox ("history_data_fake", 1, $history_data, true, $disabledBecauseInPolicy); + $table_simple->data[3][3] .= ''; +} +else { + $table_simple->data[3][3] = html_print_checkbox ("history_data", 1, $history_data, true, $disabledBecauseInPolicy); +} /* Advanced form part */ $table_advanced->id = 'advanced';