* Fix bug#37995

This commit is contained in:
zenggang
2023-08-31 08:20:22 +00:00
parent eeff561c79
commit 0a3de8efff
5 changed files with 26 additions and 5 deletions
+9 -2
View File
@@ -541,9 +541,16 @@ class repoModel extends model
->fetchAll();
$productIds = $productItems = array();
foreach($repos as $repo)
if($projectID)
{
$productIds = array_merge($productIds, explode(',', $repo->product));
$productIds = $this->loadModel('product')->getProductIDByProject($projectID, false);
}
else
{
foreach($repos as $repo)
{
$productIds = array_merge($productIds, explode(',', $repo->product));
}
}
$products = $this->loadModel('product')->getByIdList(array_filter(array_unique($productIds)));
foreach($products as $productID => $product)