* adjust the search settings of bug module.

This commit is contained in:
wangchunsheng
2009-12-05 05:55:18 +00:00
parent e46407b986
commit d5060e5a81
7 changed files with 80 additions and 25 deletions

View File

@@ -39,7 +39,7 @@ class bugModel extends model
->specialChars('steps')
->join('mailto', ',')
->get();
$this->dao->insert(TABLE_BUG)->data($bug)->autoCheck()->check('title', 'notempty')->exec();
$this->dao->insert(TABLE_BUG)->data($bug)->autoCheck()->batchCheck('title,type', 'notempty')->exec();
if(!dao::isError())
{
$bugID = $this->dao->lastInsertID();
@@ -106,7 +106,7 @@ class bugModel extends model
$this->dao->update(TABLE_BUG)->data($bug)
->autoCheck()
->check('title', 'notempty')
->batchCheck('title,type', 'notempty')
->checkIF($bug->resolvedBy, 'resolution', 'notempty')
->checkIF($bug->closedBy, 'resolution', 'notempty')
->checkIF($bug->resolution == 'duplicate', 'duplicateBug', 'notempty')