Skip to content

Commit 9c98a18

Browse files
authored
MAGETWO-75320: Add Initilized storeId as null when All Websites set in grid. Removed… #10935
2 parents 0146a7d + 0a9d884 commit 9c98a18

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)