Skip to content

Commit

Permalink
MAGETWO-44237: CategoryLinkManagementInterface->getAssignedProducts()…
Browse files Browse the repository at this point in the history
… does not work with flat tables
  • Loading branch information
Valeriy Nayda authored and Michail Slabko committed Oct 27, 2015
1 parent 9ba4141 commit 6855934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/CategoryLinkManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getAssignedProducts($categoryId)
$links = [];

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

0 comments on commit 6855934

Please sign in to comment.