Events count filter by type in event reports #4261

This commit is contained in:
enriquecd 2016-12-19 17:57:14 +01:00
parent e07958dab2
commit aacdaf2f06
1 changed files with 7 additions and 1 deletions

View File

@ -129,7 +129,13 @@ function reporting_html_print_report($report, $mini = false) {
$item['date']['to'], $item['date']['to'],
$label); $label);
$table->data['description_row']['description'] = $item["description"]." - Total events: ".$item["total_events"]; if($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;
switch ($item['type']) { switch ($item['type']) {