diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e3c3fc4280..9a3c61707a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2012-12-07 Sergio Martin + + * include/javascript/pandora_modules.js + godmode/agentes/module_manager_editor_common.php + godmode/agentes/configurar_agente.php + godmode/modules/manage_network_components_form.php + godmode/modules/manage_network_components_form_common.php + godmode/modules/manage_network_components.php: Added id_category + to network components and module editors + 2012-12-07 Ramon Novoa * include/functions_graph.php, diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 54b9192bff..b06bb917cf 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -986,7 +986,8 @@ if ($create_module) { 'unknown_instructions' => $unknown_instructions, 'critical_inverse' => $critical_inverse, 'warning_inverse' => $warning_inverse, - 'cron_interval' => $cron_interval); + 'cron_interval' => $cron_interval, + 'id_category' => $id_category); if ($prediction_module == 3 && $serialize_ops == '') { $id_agent_module = false; diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 50dcadc2c9..b9d7d1af90 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -385,6 +385,10 @@ if (check_acl ($config['id_user'], 0, "PM")) { $table_advanced->data[13][1] = html_print_select(categories_get_all_categories('forselect'), 'id_category', $id_category, '', __('None'), 0, true); $table_advanced->colspan[13][1] = 4; } +else { + // Store in a hidden field if is not visible to avoid delete the value + $table_advanced->data[12][4] .= html_print_input_hidden ('id_category', $id_category, true); +} ?>