From 7b9dfd83f41a219c04a0050b4dc395a4418b5941 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 18 Jan 2024 17:46:24 +0800 Subject: [PATCH] * Fix bug #44245. --- module/execution/model.php | 1 + module/task/model.php | 1 + 2 files changed, 2 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index a30eaea405..901e07f6c5 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5488,6 +5488,7 @@ class executionModel extends model { $canStart = $execution->status == 'wait' ? $execution->ipdStage['canStart'] : 1; if($execution->status == 'close') $canStart = false; + if($project->parallel) $canStart = true; $task->ipdStage = new stdclass(); $task->ipdStage->canStart = $canStart; $task->ipdStage->taskStartTip = sprintf($this->lang->execution->disabledTip->taskStartTip, $this->lang->stage->ipdTypeList[$execution->ipdStage['preAttribute']], $this->lang->stage->ipdTypeList[$execution->attribute]); diff --git a/module/task/model.php b/module/task/model.php index 4ac7c171fb..1d95fea101 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -4256,6 +4256,7 @@ class taskModel extends model $execution->ipdStage = $this->loadModel('execution')->canStageStart($execution); $plmCanStart = $execution->status == 'wait' ? $execution->ipdStage['canStart'] : 1; if($execution->status == 'close') $plmCanStart = false; + if($execution->parallel) $plmCanStart = true; } $menu = '';