Fixed template to alert mapping (#9173)

This commit is contained in:
TheGreatDoc
2018-09-08 15:53:14 +02:00
committed by Tony Murray
parent 8c83838f99
commit 67e883f1a0

View File

@@ -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;
}