From cda31dd123182584be0dafe881cba842c42bdc80 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 26 Jun 2025 10:07:23 +0800 Subject: [PATCH] * [bug#63712,done,0.1h] check execution only in ipd. --- module/task/ui/edit.html.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/task/ui/edit.html.php b/module/task/ui/edit.html.php index 8564d71258..d13c70d06e 100644 --- a/module/task/ui/edit.html.php +++ b/module/task/ui/edit.html.php @@ -76,8 +76,12 @@ $hiddenTeam = $task->mode != '' ? '' : 'hidden'; $disabledEstStarted = $project && $project->taskDateLimit == 'limit' && !empty($parentTask) && helper::isZeroDate($parentTask->estStarted); $disabledDeadline = $project && $project->taskDateLimit == 'limit' && !empty($parentTask) && helper::isZeroDate($parentTask->deadline); -$execution->canStartExecution = $this->loadModel('execution')->checkStageStatus($execution->id, 'start'); -$task->executionInfo = $execution; +/* 检查是否可以开始执行。*/ +if($this->config->edition == 'ipd') +{ + $execution->canStartExecution = $this->loadModel('execution')->checkStageStatus($execution->id, 'start'); + $task->executionInfo = $execution; +} if($task->status == 'wait') unset($statusOptions['pause']);