mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed template to alert mapping (#9173)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user