From 89b294667fb264df36b3a94f097c09460be85ef2 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 17 Feb 2014 16:51:15 +0000 Subject: [PATCH] 2014-02-17 Juan Manuel Ramon * operation/agentes/status_monitor.php: Fixed tag combo, now only shows user tags not all. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../operation/agentes/status_monitor.php | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8299cf36e5..406cfacb2f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-02-17 Juan Manuel Ramon + + * operation/agentes/status_monitor.php: Fixed tag combo, + now only shows user tags not all. + 2014-02-14 Juan Manuel Ramon * include/functions_tags.php: Fixed several bugs with diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index d052a3d9c1..b81d81ffad 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -300,12 +300,21 @@ if (defined('METACONSOLE')) { // Get all info for filters of all nodes $modules_temp = db_get_all_rows_sql($sql); - $tags_temp = db_get_all_rows_sql(' - SELECT name, name - FROM ttag - WHERE id_tag IN (SELECT ttag_module.id_tag - FROM ttag_module)'); + # Fix : only user tags have to be shown in these component + $_tags = tags_get_user_tags(); + + if (!empty($_tags)) { + + foreach ($_tags as $_tag) { + + $tags_temp[]['name'] = $_tag; + + } + + } + + $rows_temp = db_get_all_rows_sql("SELECT distinct name FROM tmodule_group ORDER BY name");