* [bug#66312,done,1.5h] add link plans field.

This commit is contained in:
tianshujie
2025-10-22 11:17:57 +08:00
parent 47c1ccef1c
commit acef603372
7 changed files with 25 additions and 16 deletions
+7 -1
View File
@@ -1276,6 +1276,12 @@ class execution extends control
unset($parentStageList[0]);
}
if(empty($project->hasProduct))
{
$linkedProduct = current($linkedObjects->linkedProducts);
$linkedPlans = !empty($linkedProduct->plans) ? array_values($linkedProduct->plans) : array();
}
$this->view->title = $this->lang->execution->edit . $this->lang->hyphen . $execution->name;
$this->view->executions = $executions;
$this->view->execution = $execution;
@@ -1296,7 +1302,7 @@ class execution extends control
$this->view->unmodifiableBranches = $linkedObjects->unmodifiableBranches;
$this->view->productPlans = $linkedObjects->productPlans;
$this->view->productPlan = $linkedObjects->productPlan;
$this->view->currentPlan = $linkedObjects->currentPlan;
$this->view->currentPlan = empty($project->hasProduct) ? $linkedPlans : $linkedObjects->currentPlan;
$this->view->branchGroups = $this->execution->getBranchByProduct(array_keys($linkedObjects->linkedProducts), $execution->project, 'noclosed', $linkedObjects->linkedBranchList);
$this->view->teamMembers = $this->execution->getTeamMembers($executionID);
$this->view->allProjects = $this->project->getPairsByModel($project->model, 'noclosed|multiple', $project->id);