Add total evens count in reports header - #3162

(cherry picked from commit 0b1454f0e8)
This commit is contained in:
enriquecd 2016-12-07 15:45:30 +01:00
parent 6edc5e1439
commit 7c1e3b9a07
2 changed files with 7 additions and 3 deletions

View File

@ -1339,6 +1339,8 @@ function reporting_event_report_group($report, $content,
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }
@ -1383,6 +1385,8 @@ function reporting_event_report_module($report, $content) {
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }
@ -2201,6 +2205,8 @@ function reporting_event_report_agent($report, $content,
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }

View File

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