From fac1b3b6163291bddad5d7f3e080c55cd99ff498 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 20 Aug 2018 17:28:14 +0200 Subject: [PATCH] fixed error for each agent report metaconsole --- pandora_console/include/functions_reporting.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 9c0a8d2a8c..2643008e71 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -6291,7 +6291,6 @@ function reporting_custom_graph($report, $content, $type = 'dinamic', $graph = db_get_row ("tgraph", "id_graph", $content['id_gs']); $return = array(); $return['type'] = 'custom_graph'; - if (empty($content['name'])) { if ($type_report == "custom_graph") { $content['name'] = __('Custom graph'); @@ -6305,7 +6304,12 @@ function reporting_custom_graph($report, $content, $type = 'dinamic', $graphs[0]["average_series"] = ''; $graphs[0]["modules_series"] = ''; foreach ($content['id_agent_module'] as $key => $value) { - $modules[] = $value['module']; + if($content['each_agent']){ + $modules[] = $value; + } + else{ + $modules[] = $value['module']; + } } $id_graph = 0; }