Skip to content

Commit 6855934

Browse files
Valeriy NaydaMichail Slabko
Valeriy Nayda
authored and
Michail Slabko
committed
MAGETWO-44237: CategoryLinkManagementInterface->getAssignedProducts() does not work with flat tables
1 parent 9ba4141 commit 6855934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/CategoryLinkManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getAssignedProducts($categoryId)
4545
$links = [];
4646

4747
/** @var \Magento\Catalog\Model\Product $product */
48-
foreach ($products->getItems() as $productId => $product) {
48+
foreach ($products->getItems() as $product) {
4949
/** @var \Magento\Catalog\Api\Data\CategoryProductLinkInterface $link */
5050
$link = $this->productLinkFactory->create();
5151
$link->setSku($product->getSku())

0 commit comments

Comments
 (0)