From 6e62f4c0238d62e5f3422ebcfa6b95b85892e363 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 1 Mar 2018 15:55:58 +0100 Subject: [PATCH] [SQL Graphs] Added Max items form to top_n_value db column --- .../reporting_builder.item_editor.php | 34 +++++++++---------- .../godmode/reporting/reporting_builder.php | 2 ++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 65565857c0..5265ef9b26 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -361,33 +361,16 @@ switch ($action) { $text = $item['text']; break; case 'sql': - $description = $item['description']; - $sql_query_report = $item['external_source']; - $idCustom = $item['treport_custom_sql_id']; $header = $item['header_definition']; - $historical_db = $item['historical_db']; - $period = 0; - break; case 'sql_graph_pie': - $description = $item['description']; - $sql_query_report = $item['external_source']; - $idCustom = $item['treport_custom_sql_id']; - $historical_db = $item['historical_db']; - $period = 0; - break; case 'sql_graph_vbar': - $description = $item['description']; - $sql_query_report = $item['external_source']; - $idCustom = $item['treport_custom_sql_id']; - $historical_db = $item['historical_db']; - $period = 0; - break; case 'sql_graph_hbar': $description = $item['description']; $sql_query_report = $item['external_source']; $idCustom = $item['treport_custom_sql_id']; $historical_db = $item['historical_db']; $period = 0; + $top_n_value = $item['top_n_value']; break; case 'url': $description = $item['description']; @@ -1283,6 +1266,16 @@ You can of course remove the warnings, that's why we include the source and do n + + + + + + + +