* finish task #2332.

This commit is contained in:
wangyidong
2015-10-15 11:33:52 +08:00
parent 81a305e6b6
commit ea93e3cc5b
+1 -1
View File
@@ -1285,7 +1285,7 @@ class bugModel extends model
->add('type', 'bug')
->stripTags('content', $this->config->allowedTags)
->get();
$this->dao->insert(TABLE_USERTPL)->data($template)->batchCheck('title, content', 'notempty')->check('title', 'unique')->exec();
$this->dao->insert(TABLE_USERTPL)->data($template)->batchCheck('title, content', 'notempty')->check('title', 'unique', "account='{$this->app->user->account}'")->exec();
}
/**