diff --git a/module/bug/model.php b/module/bug/model.php index a0aad27c89..bc83873721 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1222,7 +1222,7 @@ class bugModel extends model ->add('type', 'bug') ->stripTags('content', $this->config->allowedTags) ->get(); - $this->dao->insert(TABLE_USERTPL)->data($template)->autoCheck('title, content', 'notempty')->check('title', 'unique')->exec(); + $this->dao->insert(TABLE_USERTPL)->data($template)->batchCheck('title, content', 'notempty')->check('title', 'unique')->exec(); } /**