* Fix an error when manage products.

This commit is contained in:
tianshujie
2023-10-13 14:47:09 +08:00
parent 5d8607a625
commit a0478dd506
+1 -1
View File
@@ -1052,7 +1052,7 @@ class projectZen extends project
$linkedBranchIdList = array();
$branches = $this->project->getBranchesByProject($projectID);
$linkedProductIdList = empty($branches) ? '' : array_keys($branches);
$allProducts = $this->loadModel('program')->getProductPairs($project->parent, 'all', 'noclosed', $linkedProductIdList);
$allProducts = $this->loadModel('program')->getProductPairs($project->parent, 'all', 'noclosed', implode(',', $linkedProductIdList));
$linkedProducts = $this->loadModel('product')->getProducts($projectID, 'all', '', true, $linkedProductIdList);
$projectStories = $this->project->getStoriesByProject($projectID);
$projectBranches = $this->project->getBranchGroup($projectID, array_keys($linkedProducts));