Skip to content

Commit 258505e

Browse files
committed
ACP2E-2038: Bundle - Stock Issue when updating product from cart
1 parent adc4105 commit 258505e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/StockStateProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function checkQuoteItemQty(StockItemInterface $stockItem, $qty, $summaryQ
163163
return $result;
164164
}
165165

166-
if (!$this->checkQty($stockItem, $summaryQty) || !$this->checkQty($stockItem, $qty)) {
166+
if (!$this->checkQty($stockItem, $summaryQty) && !$this->checkQty($stockItem, $qty)) {
167167
$message = __('The requested qty is not available');
168168
$result->setHasError(true)
169169
->setErrorCode('qty_available')

0 commit comments

Comments
 (0)