diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 099d398691..271b440fdf 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -744,6 +744,7 @@ switch ($action) { $es = json_decode($item['external_source'], true); $date = $es['date']; + $selected_agent_server_filter = $es['agent_server_filter']; $selected_agent_group_filter = $es['agent_group_filter']; $selected_agents_inventory_display_options = $es['agents_inventory_display_options']; $selected_agent_os_filter = $es['agent_os_filter']; @@ -3078,6 +3079,38 @@ $class = 'databox filters'; + $server) { + $server_fields[$key] = $server['server_name']; + } + + $server_filter_markup = ' + + '.__('Server').''.html_print_select( + $server_fields, + 'agent_server_filter', + $selected_agent_server_filter, + '', + false, + '', + true, + false, + false, + '', + false, + 'min-width: 180px' + ).''; + + if (is_metaconsole()) { + echo $server_filter_markup; + } + ?> + colspan['permissions']['cell'] = 3; $table->cellstyle['permissions']['cell'] = 'text-align: center;'; @@ -5925,8 +5923,6 @@ function reporting_html_permissions($table, $item, $pdf=0) } } - // hd("lllllp", true); - // hd($pdf, true); if ($pdf === 0) { $table->colspan['permissions']['cell'] = 3; $table->cellstyle['permissions']['cell'] = 'text-align: center;';