* code for task#1784.

This commit is contained in:
xia0ta0
2014-03-03 09:29:07 +08:00
parent cccc568124
commit e426a8131a
+1 -1
View File
@@ -49,7 +49,7 @@ class testtaskModel extends model
->batchcheck($this->config->testtask->create->requiredFields, 'notempty')
->checkIF($task->begin != '', 'begin', 'date')
->checkIF($task->end != '', 'end', 'date')
->checkIF($task->end != '', 'end', 'gt', $task->begin)
->checkIF($task->end != '', 'end', 'ge', $task->begin)
->exec();
if(!dao::isError()) return $this->dao->lastInsertID();
}