diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b33049d8a5..4f2ab258ce 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-01-21 Miguel de Dios + + * godmode/reporting/visual_console_builder.elements.php: fixed the show + disabled modules in the list of element tab of the visual console editor. + + Fixes: #3155701 + 2011-01-20 Miguel de Dios * operation/agentes/status_monitor.php: fixed and optimized the extract the diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index 2e74c0ee85..c180b0396b 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -145,7 +145,8 @@ foreach ($layoutDatas as $layoutData) { $table->data[$i + 2]['icon'] = ''; $table->data[$i + 2][0] = ' ' . __("Type at least two characters to search.") . '' . print_input_text_extended ('agent_' . $idLayoutData, get_agent_name($layoutData['id_agent']), 'text-agent_' . $idLayoutData, '', 15, 100, false, '', array('class' => 'text-agent', 'style' => 'background: #ffffff url(images/lightning.png) no-repeat right;'), true); - $table->data[$i + 2][1] = print_select_from_sql('SELECT id_agente_modulo, nombre FROM tagente_modulo WHERE id_agente = ' . $layoutData['id_agent'], + $sql = 'SELECT id_agente_modulo, nombre FROM tagente_modulo WHERE disabled = 0 AND id_agente = ' . $layoutData['id_agent']; + $table->data[$i + 2][1] = print_select_from_sql($sql, 'module_' . $idLayoutData, $layoutData['id_agente_modulo'], '', '---', 0, true); $table->data[$i + 2][2] = ''; if ($layoutData['type'] == MODULE_GRAPH) {