diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 845f8887e5..1782de5188 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2623,8 +2623,8 @@ function reporting_alert_report_group($report, $content) { $data_row['fired'] = array(); $firedTimes = get_module_alert_fired( - $content['id_agent_module'], - $alert['id_alert_template'], + $alert['id_agent_module'], + $alert['id'], (int) $content['period'], (int) $report["datetime"]); @@ -2731,7 +2731,7 @@ function reporting_alert_report_agent($report, $content) { $data_row['fired'] = array(); $firedTimes = get_module_alert_fired( $alert['id_agent_module'], - $alert['id_alert_template'], + $alert['id'], (int) $content['period'], (int) $report["datetime"]);