From 83b1cc3423aa25505950432417d48f118b1d30eb Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 8 Sep 2009 15:38:43 +0000 Subject: [PATCH] 2009-09-07 Miguel de Dios * godmode/agentes/massive_edit_modules.php: now the select of Module name have got all modules but you can filter in the select of Module type. Fix in part but #2848951 in tracker sourceforge, exactly the first paragraph of bug. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1920 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++ .../godmode/agentes/massive_edit_modules.php | 26 ++++++++++++++----- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bbd65b8f87..adaee2269b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2009-09-07 Miguel de Dios + + * godmode/agentes/massive_edit_modules.php: now the select of + Module name have got all modules but you can filter in the select of + Module type. Fix in part but #2848951 in tracker sourceforge, exactly + the first paragraph of bug. + 2009-09-07 Miguel de Dios * include/javascript/pandora_modules.js: add events for selects in diff --git a/pandora_console/godmode/agentes/massive_edit_modules.php b/pandora_console/godmode/agentes/massive_edit_modules.php index ce62d6d8f7..e74f0bed43 100644 --- a/pandora_console/godmode/agentes/massive_edit_modules.php +++ b/pandora_console/godmode/agentes/massive_edit_modules.php @@ -126,13 +126,18 @@ $table->data[0][1] = print_select ($types, $modules = array (); if ($module_type != '') { - $names = get_agent_modules (array_keys ($agents), - 'DISTINCT(nombre)', - array ('id_tipo_modulo' => $module_type), false); - foreach ($names as $name) { - $modules[$name['nombre']] = $name['nombre']; - } + $filter = array ('id_tipo_modulo' => $module_type); } +else { + $filter = false; +} + +$names = get_agent_modules (array_keys ($agents), + 'DISTINCT(nombre)', $filter, false); +foreach ($names as $name) { + $modules[$name['nombre']] = $name['nombre']; +} + $table->data[0][2] = __('Module name'); $table->data[0][3] = print_select ($modules, 'module_name', $module_name, false, __('Select'), 0, true, false, false); @@ -172,6 +177,13 @@ require_jquery_file ('pandora.controls'); /*