* Display all products of the top program.

This commit is contained in:
daitingting
2022-11-21 02:12:42 +00:00
parent e55339258b
commit 84b1383820
+2 -1
View File
@@ -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)
{