From d25a3dc9f9fcebdb66311e9a21a3718b783c226c Mon Sep 17 00:00:00 2001 From: vgilc Date: Wed, 11 May 2011 13:53:24 +0000 Subject: [PATCH] 2011-05-11 Vanessa Gil * godmode/agentes/module_manager_editor.php include/javascript/pandora_modules.js: Fixed bug: Is possible to create a module plugin without module associated. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/module_manager_editor.php | 1 + pandora_console/include/javascript/pandora_modules.js | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fbc5bc9609..43eee34651 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 Vanessa Gil + + * godmode/agentes/module_manager_editor.php + include/javascript/pandora_modules.js: Fixed bug: Is possible to create a module plugin without module associated. + 2011-05-10 Juan Manuel Ramon * include/functions_io.php diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index eb58b40967..3f6d944ebe 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -362,6 +362,7 @@ var no_name_lang = ""; var no_target_lang = ""; var no_oid_lang = ""; var no_prediction_module_lang = ""; +var no_plugin_lang = ""; $(document).ready (function () { configure_modules_form (); diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index ddd6570775..a6c2d69e43 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -303,6 +303,12 @@ function configure_modules_form () { return false; } + if ($("#id_plugin").attr ("value") == 0) { + $("#id_plugin").focus (); + $("#message").showMessage (no_plugin_lang); + return false; + } + moduletype = $("#hidden-moduletype").val (); if (moduletype == 5) { if ($("#prediction_module").val () == null) {