Some fixes for the enterprise PDF reports.
This commit is contained in:
parent
9e75cce59f
commit
e005a352ab
|
@ -2251,11 +2251,12 @@ function reporting_network_interfaces_report($report, $content,
|
|||
$network_interfaces_by_agents = agents_get_network_interfaces(false, $filter);
|
||||
|
||||
if (empty($network_interfaces_by_agents)) {
|
||||
$return['error'] = 1;
|
||||
$return['failed'] =
|
||||
__('The group has no agents or none of the agents has any network interface');
|
||||
$return['data'] = array();
|
||||
}
|
||||
else {
|
||||
$return['error'] = 0;
|
||||
$return['failed'] = null;
|
||||
$return['data'] = array();
|
||||
|
||||
foreach ($network_interfaces_by_agents as $agent_id => $agent) {
|
||||
|
|
|
@ -1218,11 +1218,10 @@ function reporting_html_group_configuration($table, $item) {
|
|||
|
||||
function reporting_html_network_interfaces_report($table, $item) {
|
||||
|
||||
if ($item['error']) {
|
||||
if (!empty($item['failed'])) {
|
||||
$table->colspan['interfaces']['cell'] = 3;
|
||||
$table->cellstyle['interfaces']['cell'] = 'text-align: left;';
|
||||
$table->data['interfaces']['cell'] =
|
||||
__('The group has no agents or none of the agents has any network interface');
|
||||
$table->data['interfaces']['cell'] = $item['failed'];
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
Loading…
Reference in New Issue