Add total evens count in reports header - #3162
(cherry picked from commit 0b1454f0e8
)
This commit is contained in:
parent
6edc5e1439
commit
7c1e3b9a07
|
@ -1339,6 +1339,8 @@ function reporting_event_report_group($report, $content,
|
|||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
$return['total_events'] = count($return['data']);
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
@ -1383,6 +1385,8 @@ function reporting_event_report_module($report, $content) {
|
|||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
$return['total_events'] = count($return['data']);
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
@ -2201,6 +2205,8 @@ function reporting_event_report_agent($report, $content,
|
|||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
$return['total_events'] = count($return['data']);
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
|
|
@ -130,10 +130,8 @@ function reporting_html_print_report($report, $mini = false) {
|
|||
$item['date']['to'],
|
||||
$label);
|
||||
|
||||
if ($item["description"] != "") {
|
||||
$table->data['description_row']['description'] = $item["description"];
|
||||
$table->data['description_row']['description'] = $item["description"]." - Total events: ".$item["total_events"];
|
||||
$table->colspan['description_row']['description'] = 3;
|
||||
}
|
||||
|
||||
switch ($item['type']) {
|
||||
case 'availability':
|
||||
|
|
Loading…
Reference in New Issue