From 926d3f5627b44f3e3c0b6e4d75808c4d909940a9 Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 25 Jan 2022 12:57:26 +0100 Subject: [PATCH] Fix tree view filter view on meta --- pandora_console/operation/tree.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index 45c2b53614..ad11c1da46 100755 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -215,7 +215,7 @@ $agent_status_arr[AGENT_STATUS_NOT_INIT] = __('Not init'); $row = []; $row[] = __('Search group'); -$row[] = html_print_input_text('search_group', $search_group, '', is_metaconsole() ? 50 : 25, 30, true); +$row[] = html_print_input_text('search_group', $search_group, '', 25, 30, true); if (is_metaconsole()) { $row[] = __('Show not init modules'); @@ -228,11 +228,16 @@ $table->data[] = $row; $row = []; $row[] = __('Search agent'); -$row[] = html_print_input_text('search_agent', $search_agent, '', is_metaconsole() ? 50 : 25, 30, true); +$row[] = html_print_input_text('search_agent', $search_agent, '', 25, 30, true); $row[] = __('Show not init agents'); $row[] = html_print_checkbox('show_not_init_agents', $show_not_init_agents, true, true); +if (is_metaconsole() === true) { + $table->data[] = $row; + $row = []; +} + $row[] = __('Show full hirearchy'); $row[] = html_print_checkbox('serach_hirearchy', $serach_hirearchy, false, true); @@ -241,8 +246,12 @@ $row[] = html_print_select($agent_status_arr, 'status_agent', $status_agent, '', $row[] = html_print_input_hidden('show_not_init_modules_hidden', $show_not_init_modules, true); // Button +if (is_metaconsole() === true) { + $table->data[] = $row; + $row = []; +} + $row[] = html_print_submit_button(__('Filter'), 'uptbutton', false, 'class="sub search"', true); -$table->rowspan[][(count($row) - 1)] = 2; $table->data[] = $row;