Skip to content

Commit 6933170

Browse files
committed
Add Initilized storeId as null when All Websites set in grid. Removed second filtering on collection. #10595
1 parent e649b4c commit 6933170

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock

1 file changed

+1
-3
lines changed

app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock/Grid.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ protected function _prepareCollection()
5353
} elseif ($store) {
5454
$storeId = (int)$store;
5555
} else {
56-
$storeId = '';
56+
$storeId = null;
5757
}
5858

5959
/** @var $collection \Magento\Reports\Model\ResourceModel\Product\Lowstock\Collection */
6060
$collection = $this->_lowstocksFactory->create()->addAttributeToSelect(
6161
'*'
62-
)->setStoreId(
63-
$storeId
6462
)->filterByIsQtyProductTypes()->joinInventoryItem(
6563
'qty'
6664
)->useManageStockFilter(

0 commit comments

Comments
 (0)