Fix bug events count in events reports - #4239

This commit is contained in:
enriquecd 2016-12-20 19:55:11 +01:00
parent bb4a5787e1
commit ee96d6069f
1 changed files with 2 additions and 4 deletions

View File

@ -129,12 +129,10 @@ function reporting_html_print_report($report, $mini = false) {
$item['date']['to'], $item['date']['to'],
$label); $label);
if($item["total_events"]){ if($item['type']=='event_report_agent' || $item['type']=='event_report_module' || $item['type']=='event_report_group'){
$table->data['description_row']['description'] = $item['description']." - Total events: ".$item["total_events"]; $table->data['description_row']['description'] = $item['description']." - Total events: ".$item["total_events"];
} }
else{
$table->data['description_row']['description'] = $item["description"];
}
$table->colspan['description_row']['description'] = 3; $table->colspan['description_row']['description'] = 3;