From 63566dd3af4fc1701ba147d745c7e4663802cbbd Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 13 Jan 2016 10:34:01 +0100 Subject: [PATCH] Fixed the hbars for the report exception item. TICKET: #3153 --- .../include/functions_reporting.php | 41 +++++++++++-------- pandora_console/include/graphs/fgraph.php | 2 +- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 52a02890b0..6216f1086f 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -1964,23 +1964,30 @@ function reporting_exception($report, $content, $type = 'dinamic', $config['fontpath'], $config['font_size'], $ttl); - $return["chart"]["hbar"] = hbar_graph( - false, - $data_hbar, - 600, - 100, - array(), - array(), - "", - "", - true, - ui_get_full_url(false, false, false, false), - ui_get_full_url(false, false, false, false) . "/images/logo_vertical_water.png", - '', - '', - true, - $ttl, - true); + + + $params = array( + 'flash_chart' => false, + 'chart_data' => $data_hbar, + 'width' => 600, + 'height' => 25 * count($data_hbar), + 'color' => array(), + 'legend' => array(), + 'long_index' => array(), + 'no_data_image' => ui_get_full_url("images/image_problem.opaque.png", false, false, false), + 'xaxisname' => "", + 'yaxisname' => "", + 'water_mark' => ui_get_full_url(false, false, false, false) . "/images/logo_vertical_water.png", + 'font' => "", + 'font_size' => "", + 'unit' => "", + 'ttl' => $ttl, + 'homeurl' => ui_get_full_url(false, false, false, false), + 'backgroundColor' => 'white' + ); + $return["chart"]["hbar"] = call_user_func_array( + 'hbar_graph', + $params); } diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index 052df71c64..a399647450 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -579,7 +579,7 @@ function hbar_graph($flash_chart, $chart_data, $width, $height, $id_graph = serialize_in_temp($graph, null, $ttl); - return ""; + return ""; } }