Ent 7547 tree view no filtra bien dashboard

This commit is contained in:
Daniel Maya 2021-06-21 14:01:32 +00:00 committed by Daniel Rodriguez
parent 595fabb232
commit 878a5321e8
2 changed files with 24 additions and 21 deletions

View File

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

View File

@ -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;
}