* should use batchCheck instead of autocheck.

This commit is contained in:
wwccss
2015-07-23 13:32:10 +08:00
parent 04197c1ec9
commit 517bda424c

View File

@@ -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();
}
/**