From 517bda424c48ffecfbc7eecc9b5c7a7197b7f753 Mon Sep 17 00:00:00 2001 From: wwccss Date: Thu, 23 Jul 2015 13:32:10 +0800 Subject: [PATCH] * should use batchCheck instead of autocheck. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**