Skip to content

Commit c4986d0

Browse files
author
Mastiuhin Olexandr
committed
MC-17524: Child product is not addable to Cart from PLP if it does not have default source assigned
1 parent ca0fe6e commit c4986d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GroupedCatalogInventory/Plugin/OutOfStockFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function afterPrepareForCartAdvanced(Grouped $subject, $result, DataObjec
5151
if (is_array($result) && !empty($result) && !$buyRequest->getData('super_group')) {
5252
foreach ($result as $index => $cartItem) {
5353
$productStockStatus = $this->stockRegistry->getProductStockStatus($cartItem->getId());
54-
if ($productStockStatus === StockStatusInterface::STATUS_OUT_OF_STOCK) {
54+
if ($productStockStatus == StockStatusInterface::STATUS_OUT_OF_STOCK) {
5555
unset($result[$index]);
5656
}
5757
}

0 commit comments

Comments
 (0)