* [bug#65141,done,0.2h] fix get linked product id error.

This commit is contained in:
tianshujie
2025-09-03 08:55:52 +00:00
committed by sunguangming
parent cd086dd449
commit 184e11aa51
+1 -1
View File
@@ -375,7 +375,7 @@ class projectZen extends project
$allProducts = $this->loadModel('program')->getProductPairs($project->parent, 'all', 'noclosed', '', 0, $withProgram);
$branchGroups = $this->loadModel('execution')->getBranchByProduct(array_keys($allProducts));
$projectBranches = $this->project->getBranchesByProject($projectID);
$linkedProductIdList = empty($branchGroups) ? '' : array_keys($branchGroups);
$linkedProductIdList = empty($projectBranches) ? '' : array_keys($projectBranches);
$parentProject = $this->program->getByID($project->parent);
$linkedProducts = $this->loadModel('product')->getProducts($projectID, 'all', '', true, $linkedProductIdList, false);
$plans = $this->loadModel('productplan')->getGroupByProduct(array_keys($linkedProducts), 'skipparent|unexpired');