Skip to content

Commit 20c5d49

Browse files
MAGETWO-69130: Non effective query for catalog search & layered navigation
1 parent 6ce91b9 commit 20c5d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/Quote/Item/QuantityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function validate(Observer $observer)
134134
}
135135

136136
if ($stockStatus) {
137-
if ($stockStatus->getStockStatus() == Stock::STOCK_OUT_OF_STOCK
137+
if ($stockStatus->getStockStatus() === Stock::STOCK_OUT_OF_STOCK
138138
|| $parentStockStatus && $parentStockStatus->getStockStatus() == Stock::STOCK_OUT_OF_STOCK
139139
) {
140140
$quoteItem->addErrorInfo(

0 commit comments

Comments
 (0)