From 67e883f1a01a4707b37f7f5a4aa93c03ed1cdae4 Mon Sep 17 00:00:00 2001 From: TheGreatDoc <32565115+TheGreatDoc@users.noreply.github.com> Date: Sat, 8 Sep 2018 15:53:14 +0200 Subject: [PATCH] Fixed template to alert mapping (#9173) --- html/includes/forms/attach-alert-template.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/forms/attach-alert-template.inc.php b/html/includes/forms/attach-alert-template.inc.php index 6f78353505..a99c8a6140 100644 --- a/html/includes/forms/attach-alert-template.inc.php +++ b/html/includes/forms/attach-alert-template.inc.php @@ -37,7 +37,7 @@ if (!is_numeric($_POST['template_id'])) { } if (!empty($ids)) { - dbDelete('alert_template_map', 'id NOT IN ' . dbGenPlaceholders(count($ids)) . ' AND alert_templates_id =?', array_merge([$_POST['template_id']], $ids)); + dbDelete('alert_template_map', 'id NOT IN ' . dbGenPlaceholders(count($ids)) . ' AND alert_templates_id =?', array_merge($ids, [$_POST['template_id']])); echo "Alert rules have been attached to this template."; exit; }