We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8138c0a + b5d6304 commit 7199e1eCopy full SHA for 7199e1e
app/code/Magento/CatalogInventory/Helper/Stock.php
@@ -156,7 +156,7 @@ public function addIsInStockFilterToCollection($collection)
156
$resource = $this->getStockStatusResource();
157
$resource->addStockDataToCollection(
158
$collection,
159
- !$isShowOutOfStock && $collection->getFlag('require_stock_items')
+ !$isShowOutOfStock || $collection->getFlag('require_stock_items')
160
);
161
$collection->setFlag($stockFlag, true);
162
}
0 commit comments