Skip to content

Commit

Permalink
MAGETWO-88116: [Backport-2.2] of PR-#10935 Fix LowStock report in All…
Browse files Browse the repository at this point in the history
… Websites view #13682
  • Loading branch information
ishakhsuvarov committed Feb 27, 2018
2 parents 61877da + a7ac673 commit 61d8ea6
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -53,14 +53,12 @@ protected function _prepareCollection()
} elseif ($store) {
$storeId = (int)$store;
} else {
$storeId = '';
$storeId = null;
}

/** @var $collection \Magento\Reports\Model\ResourceModel\Product\Lowstock\Collection */
$collection = $this->_lowstocksFactory->create()->addAttributeToSelect(
'*'
)->setStoreId(
$storeId
)->filterByIsQtyProductTypes()->joinInventoryItem(
'qty'
)->useManageStockFilter(
Expand Down

0 comments on commit 61d8ea6

Please sign in to comment.