From fd2eb27de8319ee447bc71a4a56b9aed20558987 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Diaz Date: Wed, 29 Jul 2015 13:34:51 +0200 Subject: [PATCH] Now the group of a module belonging to a policy does not go away by making some modification in the module. Ticket#2554 --- .../godmode/agentes/module_manager_editor_common.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index c6215f5fe7..2b22296896 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -220,11 +220,17 @@ else { $table_simple->data[1][1] .= html_print_input_hidden('type_names',base64_encode(io_json_mb_encode($type_names_hash)),true); } + $table_simple->data[1][2] = __('Module group'); $table_simple->data[1][3] = html_print_select_from_sql ('SELECT id_mg, name FROM tmodule_group ORDER BY name', 'id_module_group', $id_module_group, '', __('Not assigned'), '0', true, false, true, $disabledBecauseInPolicy); +if($disabledBecauseInPolicy){ + $table_simple->data[1][3] .= html_print_input_hidden ('id_module_group', $id_module_group, true); +} + + $table_simple->data[2][0] = __('Warning status').' ' . ui_print_help_icon ('warning_status', true); $table_simple->data[2][1] = '';