Skip to content

Commit 6c8aa11

Browse files
committed
Removed disabled products from low stock report grid
1 parent 293cd41 commit 6c8aa11

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ protected function _prepareCollection()
6868
)->setOrder(
6969
'qty',
7070
\Magento\Framework\Data\Collection::SORT_ORDER_ASC
71+
)->addAttributeToFilter(
72+
'status',
73+
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
7174
);
7275

7376
if ($storeId) {

0 commit comments

Comments
 (0)