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');