Merge branch 'ent-6818-bug-en-label-de-informes-y-plantillas' into 'develop'

fixed error with label reporting views

See merge request artica/pandorafms!3938
This commit is contained in:
Daniel Rodriguez 2021-04-09 09:24:44 +00:00
commit 1b9916c6e9

View File

@ -5644,7 +5644,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 != '') { if ($label != '') {
$label = reporting_label_macro( $label = reporting_label_macro(
$items_label, $items_label,
@ -9170,6 +9170,7 @@ function reporting_simple_graph(
$return['agent_name'] = $agent_alias; $return['agent_name'] = $agent_alias;
$return['module_name'] = $module_name; $return['module_name'] = $module_name;
$return['description'] = $description; $return['description'] = $description;
$return['label'] = $label;
$return['date'] = reporting_get_date_text( $return['date'] = reporting_get_date_text(
$report, $report,
$content $content
@ -9211,7 +9212,8 @@ function reporting_simple_graph(
$params = [ $params = [
'agent_module_id' => $content['id_agent_module'], 'agent_module_id' => $content['id_agent_module'],
'period' => $content['period'], 'period' => $content['period'],
'title' => $label, 'title' => $title,
'label' => $label,
'pure' => false, 'pure' => false,
'date' => $report['datetime'], 'date' => $report['datetime'],
'only_image' => $only_image, 'only_image' => $only_image,