Skip to content

Commit

Permalink
[Backport-2.2] of PR-#10935 Fix LowStock report in All Websites view
Browse files Browse the repository at this point in the history
  • Loading branch information
gwharton committed Feb 15, 2018
1 parent 2cc846e commit bf941eb
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 bf941eb

Please sign in to comment.