Finish task #43916.

This commit is contained in:
zhouxin
2021-11-08 14:34:44 +08:00
parent 7377b40c00
commit 92fb767ff9
4 changed files with 7 additions and 6 deletions

View File

@@ -624,7 +624,7 @@ class programModel extends model
->checkIF($program->begin != '', 'begin', 'date')
->checkIF($program->end != '', 'end', 'date')
->checkIF($program->end != '', 'end', 'gt', $program->begin)
->checkIF(!empty($program->name), 'name', 'unique', "`type`='program'")
->checkIF(!empty($program->name), 'name', 'unique', "`type`='program' and `parent` = $program->parent")
->exec();
if(!dao::isError())