From ab2803eb225b687f2b41ca446e402b845bc23416 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Thu, 29 Jun 2023 12:42:00 +0200 Subject: [PATCH] fix --- .../godmode/reporting/reporting_builder.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index e93f87a672..edf4df6a40 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -2223,15 +2223,7 @@ switch ($action) { 'historical_db_check' ); $values['top_n_value'] = get_parameter('max_items'); - - if ($values['type'] === 'sql_graph_hbar' - || ($values['type'] === 'sql_graph_vbar') - || ($values['type'] === 'sql_graph_pie') - ) { - $values['server_name'] = get_parameter('combo_server_sql'); - } else { - $values['server_name'] = get_parameter('combo_server'); - } + $values['server_name'] = get_parameter('combo_server_sql'); if ($sql !== '') { if ($values['server_name'] === 'all') { @@ -3000,15 +2992,8 @@ switch ($action) { 'historical_db_check' ); $values['top_n_value'] = get_parameter('max_items'); + $values['server_name'] = get_parameter('combo_server_sql'); - if ($values['type'] === 'sql_graph_hbar' - || ($values['type'] === 'sql_graph_vbar') - || ($values['type'] === 'sql_graph_pie') - ) { - $values['server_name'] = get_parameter('combo_server_sql'); - } else { - $values['server_name'] = get_parameter('combo_server'); - } if ($sql !== '') { if ($values['server_name'] === 'all') {