From 5572b885745a3cd7522c3e39961044e5d92b1451 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 21 Apr 2015 13:18:29 +0200 Subject: [PATCH] Fixed the lost checkbox to show graphs in the event items in the report --- .../reporting_builder.item_editor.php | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 3737e6b3a3..9b200eaaa8 100644 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -1150,14 +1150,24 @@ else html_print_checkbox ('event_graph_by_agent', true, $event_graph_by_agent); ?> - + + + + + + + + @@ -2047,7 +2057,10 @@ function chooseType() { $("#row_module_multi").hide(); $("#row_event_filter").hide(); $("#row_event_graphs").hide(); - $("#row_event_graph_by_agent").show(); + $("#row_event_graph_by_agent").hide(); + $("#row_event_graph_by_user").hide(); + $("#row_event_graph_by_criticity").hide(); + $("#row_event_graph_by_validated").hide(); $("#row_netflow_filter").hide(); $("#row_max_values").hide(); $("#row_resolution").hide(); @@ -2075,6 +2088,11 @@ function chooseType() { $("#row_show_in_two_columns").show(); $("#row_event_filter").show(); $("#row_event_graphs").show(); + + $("#row_event_graph_by_agent").show(); + $("#row_event_graph_by_user").show(); + $("#row_event_graph_by_criticity").show(); + $("#row_event_graph_by_validated").show(); break; case 'simple_graph': $("#row_time_compare_overlapped").show(); @@ -2291,7 +2309,10 @@ function chooseType() { $("#row_show_in_two_columns").show(); $("#row_event_filter").show(); $("#row_event_graphs").show(); - $("#row_event_graph_by_agent").hide(); + + $("#row_event_graph_by_user").show(); + $("#row_event_graph_by_criticity").show(); + $("#row_event_graph_by_validated").show(); $('#agent_autocomplete').hide(); $('#agent_autocomplete_events').show(); @@ -2303,6 +2324,11 @@ function chooseType() { $("#row_period").show(); $("#row_show_in_two_columns").show(); + $("#row_event_graph_by_agent").show(); + $("#row_event_graph_by_user").show(); + $("#row_event_graph_by_criticity").show(); + $("#row_event_graph_by_validated").show(); + $('#agent_autocomplete').hide(); $('#agent_autocomplete_events').show(); break;