mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
remove entities from reports
This commit is contained in:
parent
d39be510cf
commit
174db17a05
@ -328,18 +328,22 @@ function reporting_make_reporting_data(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'general':
|
case 'general':
|
||||||
$report['contents'][] = reporting_general(
|
$report['contents'][] = io_safe_output(
|
||||||
$report,
|
reporting_general(
|
||||||
$content
|
$report,
|
||||||
|
$content
|
||||||
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'availability':
|
case 'availability':
|
||||||
$report['contents'][] = reporting_availability(
|
$report['contents'][] = io_safe_output(
|
||||||
$report,
|
reporting_availability(
|
||||||
$content,
|
$report,
|
||||||
$date,
|
$content,
|
||||||
$time
|
$date,
|
||||||
|
$time
|
||||||
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -479,9 +483,11 @@ function reporting_make_reporting_data(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'agent_configuration':
|
case 'agent_configuration':
|
||||||
$report['contents'][] = reporting_agent_configuration(
|
$report['contents'][] = io_safe_output(
|
||||||
$report,
|
reporting_agent_configuration(
|
||||||
$content
|
$report,
|
||||||
|
$content
|
||||||
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -677,12 +683,14 @@ function reporting_make_reporting_data(
|
|||||||
|
|
||||||
case 'agent_detailed_event':
|
case 'agent_detailed_event':
|
||||||
case 'event_report_agent':
|
case 'event_report_agent':
|
||||||
$report_control = reporting_event_report_agent(
|
$report_control = io_safe_output(
|
||||||
$report,
|
reporting_event_report_agent(
|
||||||
$content,
|
$report,
|
||||||
$type,
|
$content,
|
||||||
$force_width_chart,
|
$type,
|
||||||
$force_height_chart
|
$force_width_chart,
|
||||||
|
$force_height_chart
|
||||||
|
)
|
||||||
);
|
);
|
||||||
if ($report_control['total_events'] == 0 && $content['hide_no_data'] == 1) {
|
if ($report_control['total_events'] == 0 && $content['hide_no_data'] == 1) {
|
||||||
continue;
|
continue;
|
||||||
@ -2180,7 +2188,7 @@ function reporting_agent_module($report, $content)
|
|||||||
foreach ($agents as $agent) {
|
foreach ($agents as $agent) {
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['agent_status'][$agent] = agents_get_status($agent);
|
$row['agent_status'][$agent] = agents_get_status($agent);
|
||||||
$row['agent_name'] = agents_get_alias($agent);
|
$row['agent_name'] = io_safe_output(agents_get_alias($agent));
|
||||||
$agent_modules = agents_get_modules($agent);
|
$agent_modules = agents_get_modules($agent);
|
||||||
|
|
||||||
$row['modules'] = [];
|
$row['modules'] = [];
|
||||||
@ -2781,7 +2789,7 @@ function reporting_event_report_agent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
$return['title'] = $content['name'];
|
$return['title'] = $content['name'];
|
||||||
$return['subtitle'] = agents_get_alias($content['id_agent']);
|
$return['subtitle'] = io_safe_output(agents_get_alias($content['id_agent']));
|
||||||
$return['description'] = $content['description'];
|
$return['description'] = $content['description'];
|
||||||
$return['date'] = reporting_get_date_text($report, $content);
|
$return['date'] = reporting_get_date_text($report, $content);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user