From 82f36884fb25ba0dbb316a518da3f14b2264b4ad Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 5 Mar 2010 11:32:17 +0000 Subject: [PATCH] 2010-03-05 Miguel de Dios * godmode/agentes/module_manager_editor_common.php: fix the type for when ajax load by form editor in modules policies. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2477 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 92b30238ee..9ca961a1da 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-03-05 Miguel de Dios + + * godmode/agentes/module_manager_editor_common.php: fix the type for when + ajax load by form editor in modules policies. + 2010-03-05 Miguel de Dios * include/functions_gis.php: clean source code delete obsolete unused diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 0cf4c3fd04..217bf9d113 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -129,13 +129,20 @@ if ($id_agent_module) { $table_simple->data[1][1] = ''.get_moduletype_description ($id_module_type).''; } else { + if (isset($id_module_type)) { + $idModuleType = $id_module_type; + } + else { + $idModuleType = ''; + } + $sql = sprintf ('SELECT id_tipo, descripcion FROM ttipo_modulo WHERE categoria IN (%s) ORDER BY descripcion', implode (',', $categories)); $table_simple->data[1][1] = print_select_from_sql ($sql, 'id_module_type', - '', '', '', '', true, false, false, $disabledBecauseInPolicy); + $idModuleType, '', '', '', true, false, false, $disabledBecauseInPolicy); } $table_simple->data[1][2] = __('Module group');