* checking the end date.

This commit is contained in:
wangchunsheng
2011-11-29 02:59:19 +00:00
parent b419795c65
commit 6984062222
+1
View File
@@ -141,6 +141,7 @@ class projectModel extends model
->batchcheck($this->config->project->create->requiredFields, 'notempty')
->checkIF($project->begin != '', 'begin', 'date')
->checkIF($project->end != '', 'end', 'date')
->check('end', 'gt', $project->begin)
->check('name', 'unique')
->check('code', 'unique')
->exec();