diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 6050bffa2e..8ff384a8fc 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1126,6 +1126,7 @@ class Tree $agent_search_filter $agent_status_filter $module_search_filter + $module_status_filter $tag_condition GROUP BY tam.id_agente_modulo ORDER BY tam.nombre ASC, tam.id_agente_modulo ASC"; diff --git a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php index edb843bda0..cbeba60d3f 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php @@ -418,28 +418,30 @@ class TreeViewWidget extends Widget AGENT_MODULE_STATUS_NOT_INIT => __('Not init'), ]; - $inputs[] = [ - 'label' => __('Modules status'), - 'arguments' => [ - 'type' => 'select', - 'fields' => $fields, - 'name' => 'moduleStatus', - 'selected' => $values['moduleStatus'], - 'return' => true, - ], - ]; + if (is_metaconsole() === false) { + $inputs[] = [ + 'label' => __('Modules status'), + 'arguments' => [ + 'type' => 'select', + 'fields' => $fields, + 'name' => 'moduleStatus', + 'selected' => $values['moduleStatus'], + 'return' => true, + ], + ]; - // Filter modules. - $inputs[] = [ - 'label' => __('Filter modules'), - 'arguments' => [ - 'name' => 'filterModule', - 'type' => 'text', - 'value' => $values['filterModule'], - 'return' => true, - 'size' => 0, - ], - ]; + // Filter modules. + $inputs[] = [ + 'label' => __('Filter modules'), + 'arguments' => [ + 'name' => 'filterModule', + 'type' => 'text', + 'value' => $values['filterModule'], + 'return' => true, + 'size' => 0, + ], + ]; + } return $inputs; }