diff --git a/module/execution/control.php b/module/execution/control.php index 5d8052a3c0..62b5adcacf 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2431,6 +2431,7 @@ class execution extends control $this->view->unmodifiableBranches = $unmodifiableBranches; $this->view->linkedBranches = $linkedBranches; $this->view->branchGroups = $this->execution->getBranchByProduct(array_keys($allProducts), $this->config->systemMode == 'new' ? $execution->project : 0); + $this->view->allBranches = $this->execution->getBranchByProduct(array_keys($allProducts), $this->config->systemMode == 'new' ? $execution->project : 0, 'all'); $this->display(); } diff --git a/module/execution/model.php b/module/execution/model.php index 56e0a41dcd..c6df3884a1 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1676,12 +1676,13 @@ class executionModel extends model * * @param array $products * @param int $projectID + * @param string $param * @access public * @return array */ - public function getBranchByProduct($products, $projectID = 0) + public function getBranchByProduct($products, $projectID = 0, $param = 'noclosed') { - $branchGroups = $this->loadModel('branch')->getByProducts($products, 'noclosed'); + $branchGroups = $this->loadModel('branch')->getByProducts($products, $param); if($projectID) { diff --git a/module/execution/view/manageproducts.html.php b/module/execution/view/manageproducts.html.php index fcb8b30cad..ad4c9d192a 100644 --- a/module/execution/view/manageproducts.html.php +++ b/module/execution/view/manageproducts.html.php @@ -33,12 +33,12 @@ execution->notAllowRemoveProducts : $productName;?>