From d5df7bf9ce54658f46c0c5d34648e1105012af13 Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 22 Mar 2021 12:01:17 +0100 Subject: [PATCH 1/3] fixed error with label reporting views --- pandora_console/include/functions_reporting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 8e0aafe5fb..3cd4ba9855 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -5646,7 +5646,7 @@ function reporting_value($report, $content, $type, $pdf=false) ); } - $label = (isset($content['name'])) ? $content['name'] : ''; + $label = (isset($content['style']['label'])) ? $content['style']['label'] : ''; if ($label != '') { $label = reporting_label_macro( $items_label, From c9f0b138b0ee6d1b562b9b7b7cafc73b40812d4c Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 22 Mar 2021 12:24:58 +0100 Subject: [PATCH 2/3] fixed error with label reporting views --- pandora_console/include/functions_reporting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 3cd4ba9855..ad110b1c54 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -9172,6 +9172,7 @@ function reporting_simple_graph( $return['agent_name'] = $agent_alias; $return['module_name'] = $module_name; $return['description'] = $description; + $return['label'] = $label; $return['date'] = reporting_get_date_text( $report, $content @@ -9213,7 +9214,7 @@ function reporting_simple_graph( $params = [ 'agent_module_id' => $content['id_agent_module'], 'period' => $content['period'], - 'title' => $label, + 'title' => $title, 'pure' => false, 'date' => $report['datetime'], 'only_image' => $only_image, From 31e6d752292e129179a00d205a4d317aca86e6c8 Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 22 Mar 2021 14:28:12 +0100 Subject: [PATCH 3/3] fixed error with label reporting views --- pandora_console/include/functions_reporting.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ad110b1c54..72dc4e594c 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -9215,6 +9215,7 @@ function reporting_simple_graph( 'agent_module_id' => $content['id_agent_module'], 'period' => $content['period'], 'title' => $title, + 'label' => $label, 'pure' => false, 'date' => $report['datetime'], 'only_image' => $only_image,