Skip to content

Commit 6f8a6c4

Browse files
author
Sathish Subramanian
committed
ISSUE-38593 - Fix to save middle name in the quote for quest
1 parent 6f4805f commit 6f8a6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ private function placeOrderRun($cartId, PaymentInterface $paymentMethod = null)
453453
) {
454454
$quote->setCustomerFirstname($billingAddress->getFirstname());
455455
$quote->setCustomerLastname($billingAddress->getLastname());
456-
if ($billingAddress->getMiddlename() === null) {
456+
if ($billingAddress->getMiddlename() !== null) {
457457
$quote->setCustomerMiddlename($billingAddress->getMiddlename());
458458
}
459459
}

0 commit comments

Comments
 (0)