Skip to content

Commit 7199e1e

Browse files
authored
MAGETWO-65334: [GitHub][PR] Update Stock.php #8736
2 parents 8138c0a + b5d6304 commit 7199e1e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogInventory/Helper

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Helper/Stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function addIsInStockFilterToCollection($collection)
156156
$resource = $this->getStockStatusResource();
157157
$resource->addStockDataToCollection(
158158
$collection,
159-
!$isShowOutOfStock && $collection->getFlag('require_stock_items')
159+
!$isShowOutOfStock || $collection->getFlag('require_stock_items')
160160
);
161161
$collection->setFlag($stockFlag, true);
162162
}

0 commit comments

Comments
 (0)