diff --git a/module/project/control.php b/module/project/control.php index eba49dd1a7..2d05470023 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -2237,13 +2237,14 @@ class project extends control $branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), 'ignoreNormal|noclosed'); if($this->config->systemMode == 'ALM') { + $topProgramID = $this->program->getTopByPath($project->path); $productsGroupByProgram = $this->product->getProductsGroupByProgram(); $currentProducts = array(); $otherProducts = array(); foreach($productsGroupByProgram as $programID => $programProducts) { - if($programID != $project->parent) + if($programID != $topProgramID) { foreach($programProducts as $productID => $productName) {