Skip to content

Commit b5d6304

Browse files
committed
MAGETWO-65334: [GitHub][PR] Update Stock.php #8736
- Merge Pull Request #8736 from Corefix/magento2:patch-3
2 parents 2efb39f + a602762 commit b5d6304

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)