From 3e81d3242e977fbf20cc45387dd0500e54f0e9cf Mon Sep 17 00:00:00 2001 From: Luis Date: Mon, 25 Apr 2022 15:36:17 +0200 Subject: [PATCH] Fix alert creation return id --- pandora_console/include/functions_alerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_alerts.php b/pandora_console/include/functions_alerts.php index 835c8c541d..81b36f7476 100644 --- a/pandora_console/include/functions_alerts.php +++ b/pandora_console/include/functions_alerts.php @@ -1165,7 +1165,7 @@ function alerts_create_alert_agent_module($id_agent_module, $id_alert_template, implode(', ', array_values($values)) ); - return @db_process_sql($sql); + return @db_process_sql($sql, 'insert_id'); }