* Fix bug#2942,15431,21981

This commit is contained in:
zenggang
2022-04-27 07:23:08 +00:00
parent 824c376235
commit f81b53bc38
4 changed files with 20 additions and 2 deletions
+1
View File
@@ -783,6 +783,7 @@ class programplanModel extends model
->batchCheck($this->config->programplan->edit->requiredFields, 'notempty')
->checkIF($plan->end != '0000-00-00', 'end', 'ge', $plan->begin)
->checkIF($plan->percent != false, 'percent', 'float')
->checkIF((!empty($plan->name) and $this->config->systemMode == 'new'), 'name', 'unique', "id != {$planID} and type in ('sprint','stage') and `project` = {$oldPlan->project}")
->where('id')->eq($planID)
->exec();