From fe9054cf2c29af90510c2b71e030726b06562ffc Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 30 May 2023 12:18:48 +0200 Subject: [PATCH] 10012 added graph in log report by period --- .../godmode/reporting/reporting_builder.item_editor.php | 4 ++++ pandora_console/godmode/reporting/reporting_builder.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 34a1885026..7136dcfdcd 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -332,6 +332,8 @@ switch ($action) { $search = $es['search']; $log_number = empty($es['log_number']) ? $log_number : $es['log_number']; $full_text = empty($es['full_text']) ? 0 : $es['full_text']; + $show_graph = $item['show_graph']; + $group_by_agent = $item['group_by_agent']; break; case 'simple_graph': @@ -6615,6 +6617,8 @@ function chooseType() { $("#agents_row").show(); $("#row_source").show(); $("#row_historical_db_check").hide(); + $("#row_show_graph").show(); + $("#row_group_by_agent").show(); loadLogAgents(); diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index d3a48dba8d..cda03c695a 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -1629,6 +1629,8 @@ switch ($action) { $values['external_source'] = json_encode($es); $values['period'] = get_parameter('period'); $values['period_range'] = get_parameter('period_range'); + $values['show_graph'] = get_parameter('combo_graph_options'); + $values['group_by_agent'] = get_parameter('checkbox_row_group_by_agent'); $good_format = true; break; @@ -2607,6 +2609,8 @@ switch ($action) { $values['external_source'] = json_encode($es); $values['period'] = get_parameter('period'); $values['period_range'] = get_parameter('period_range'); + $values['show_graph'] = get_parameter('combo_graph_options'); + $values['group_by_agent'] = get_parameter('checkbox_row_group_by_agent'); $good_format = true; break;