From 4445032be10032226fc158addbd23b43f3737306 Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 24 Mar 2009 00:52:25 +0000 Subject: [PATCH] 2009-03-24 Sancho Lerena * module_manager_editor.php, module_manager_editor_common.php: Fixed problem with id_module affecting plugin, wmi and prediction modules. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1554 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/agentes/module_manager_editor.php | 12 ++++++------ .../godmode/agentes/module_manager_editor_common.php | 6 +++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bd70645707..65377f7cc6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-03-24 Sancho Lerena + + * module_manager_editor.php, + module_manager_editor_common.php: Fixed problem with id_module + affecting plugin, wmi and prediction modules. + 2009-03-23 Esteban Sanchez * godmode/agentes/massive_edit_modules.php: The module selection is diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index fb9cc0b07c..17428a7790 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -167,20 +167,20 @@ case 2: require ('module_manager_editor_network.php'); break; case "pluginserver": - $moduletype = 3; -case 3: + $moduletype = 4; +case 4: require ('module_manager_editor_common.php'); require ('module_manager_editor_plugin.php'); break; case "predictionserver": - $moduletype = 4; -case 4: + $moduletype = 5; +case 5: require ('module_manager_editor_common.php'); require ('module_manager_editor_prediction.php'); break; case "wmiserver": - $moduletype = 5; -case 5: + $moduletype = 6; +case 6: require ('module_manager_editor_common.php'); require ('module_manager_editor_wmi.php'); break; diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 65ff3d9d7f..0567134531 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -126,15 +126,15 @@ if ($id_agent_module) { case "networkserver": $categories = array (3, 4, 5); break; - case 3: + case 4: case "pluginserver": $categories = array (0, 1, 2, 9); break; - case 4: + case 5: case "predictionserver": $categories = array (1, 2); break; - case 5: + case 6: case "wmiserver": $categories = array (0, 1, 2); break;