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