* [task#127060,1h,0h] check start and end time.

This commit is contained in:
tanghucheng
2024-08-29 11:28:52 +08:00
committed by 胡方舟
parent 60f5ff7d7a
commit 7ce36fb1e8
+2
View File
@@ -185,6 +185,8 @@ class programplanZen extends programplan
*/
protected function prepareEditPlan(int $planID, int $projectID, object $plan, object|null $parentStage = null): object|false
{
if($plan->end < $plan->begin) dao::$errors['end'] = $this->lang->programplan->error->planFinishSmall;
if($plan->parent)
{
if(!empty($parentStage) && $plan->begin < $parentStage->begin) dao::$errors['begin'] = sprintf($this->lang->programplan->error->letterParent, $parentStage->begin);