diff --git a/module/execution/control.php b/module/execution/control.php index 733cadbe29..be171d60db 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1058,7 +1058,7 @@ class execution extends control $this->view->builds = $this->build->getBuildPairs($productID); $this->view->branchOption = $branchOption; $this->view->branchTagOption = $branchTagOption; - $this->view->plans = $this->loadModel('productplan')->getPairs($productID); + $this->view->plans = $this->loadModel('productplan')->getPairs($productID ? $productID : array_keys($products)); $this->view->stories = $storyList; $this->view->tasks = $taskList; $this->view->projectPairs = $this->loadModel('project')->getPairsByProgram(); diff --git a/module/project/control.php b/module/project/control.php index 8ffae21f8d..bc90f52216 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1183,7 +1183,7 @@ class project extends control $this->view->branchOption = $branchOption; $this->view->branchTagOption = $branchTagOption; $this->view->executions = $executions; - $this->view->plans = $this->loadModel('productplan')->getPairs($productID); + $this->view->plans = $this->loadModel('productplan')->getPairs($productID ? $productID : array_keys($products)); $this->view->stories = $storyList; $this->view->tasks = $taskList; $this->view->projectPairs = $this->project->getPairsByProgram();