From c4647be22a362f6eab8d1ce99916d33542dab853 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 21 Jan 2011 11:15:29 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../godmode/reporting/visual_console_builder.elements.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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) {