Added restriction when report comes from template
This commit is contained in:
parent
ffbd013ac0
commit
3f253b9db4
|
@ -98,7 +98,8 @@ function reporting_get_name($id_report) {
|
||||||
|
|
||||||
function reporting_make_reporting_data($report = null, $id_report,
|
function reporting_make_reporting_data($report = null, $id_report,
|
||||||
$date, $time, $period = null, $type = 'dinamic',
|
$date, $time, $period = null, $type = 'dinamic',
|
||||||
$force_width_chart = null, $force_height_chart = null, $pdf= false) {
|
$force_width_chart = null, $force_height_chart = null, $pdf= false,
|
||||||
|
$from_template = false) {
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
@ -161,6 +162,10 @@ function reporting_make_reporting_data($report = null, $id_report,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($report) && $from_template) {
|
||||||
|
$agents_to_macro = $content['id_agent'];
|
||||||
|
}
|
||||||
|
|
||||||
$agents_to_macro_aux = array();
|
$agents_to_macro_aux = array();
|
||||||
foreach ($agents_to_macro as $ag) {
|
foreach ($agents_to_macro as $ag) {
|
||||||
|
@ -10320,7 +10325,6 @@ function reporting_get_agentmodule_sla_working_timestamp ($period, $date_end, $w
|
||||||
}
|
}
|
||||||
|
|
||||||
function reporting_label_macro ($item, $label) {
|
function reporting_label_macro ($item, $label) {
|
||||||
|
|
||||||
switch ($item['type']) {
|
switch ($item['type']) {
|
||||||
case 'event_report_agent':
|
case 'event_report_agent':
|
||||||
case 'alert_report_agent':
|
case 'alert_report_agent':
|
||||||
|
|
Loading…
Reference in New Issue