Fixed attaching templates to rules

This commit is contained in:
laf
2015-07-24 10:53:52 +01:00
parent 9aa3f2cca5
commit 4ad3b8e99d
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ else {
}
if ($success === true) {
dbDelete('alert_template_map', 'id NOT IN ('.implode(',', $ids).')');
dbDelete('alert_template_map', 'id NOT IN ('.implode(',', $ids).') AND alert_templates_id =?',array($_POST['template_id']));
echo "Alert rules have been attached to this template. $template_map_ids";
exit;
}