* Finish task #73234,73242.

This commit is contained in:
tanghucheng
2022-10-27 08:09:26 +08:00
parent cf00a736a1
commit d96d6bb803
9 changed files with 64 additions and 11 deletions
+20
View File
@@ -1646,6 +1646,26 @@ class execution extends control
$this->view->linkedBranches = $linkedBranches;
}
if(!$project->division)
{
$products = $this->loadModel('product')->getProducts($projectID);
$branches = $this->project->getBranchesByProject($projectID);
$plans = $this->loadModel('productplan')->getGroupByProduct(array_keys($products), 'skipParent|unexpired');
$linkedBranches = array();
foreach($products as $productID => $product)
{
foreach($branches[$productID] as $branchID => $branch)
{
$linkedBranches[$productID][$branchID] = $branchID;
$productPlans[$productID][$branchID] = isset($plans[$productID][$branchID]) ? $plans[$productID][$branchID] : array();
}
}
$this->view->branches = $branches;
$this->view->linkedBranches = $linkedBranches;
}
if(!empty($_POST))
{
$executionID = $this->execution->create($copyExecutionID);