Skip to content

Commit df96b51

Browse files
committed
#12705: Integrity constraint violation error after reordering product with custom options
- Fixed issue by updating options if parent item is same for more than one product - Fixed issue for reorder in admin while checking the availability of product, which is not available in case of associate product. - Fixed Null coalescing operator issue
1 parent f89e04d commit df96b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProductSales/Model/Order/Reorder/OrderedProductAvailabilityChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
public function isAvailable(Item $item)
4646
{
4747
$buyRequest = $item->getBuyRequest();
48-
$superAttribute = isset($buyRequest->getData()['super_attribute']) ? $buyRequest->getData()['super_attribute'] : [];
48+
$superAttribute = $buyRequest->getData()['super_attribute'] ?? [];
4949
$connection = $this->getConnection();
5050
$select = $connection->select();
5151
$orderItemParentId = $item->getParentItem()->getProductId();

0 commit comments

Comments
 (0)