Skip to content

Commit

Permalink
fix wrong check CustomerMiddleName
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Feb 27, 2019
1 parent 9746716 commit abcf202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/Model/QuoteManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function placeOrder($cartId, PaymentInterface $paymentMethod = null)
if ($quote->getCustomerFirstname() === null && $quote->getCustomerLastname() === null) {
$quote->setCustomerFirstname($quote->getBillingAddress()->getFirstname());
$quote->setCustomerLastname($quote->getBillingAddress()->getLastname());
if ($quote->getBillingAddress()->getMiddlename() === null) {
if ($quote->getCustomerMiddlename() === null) {
$quote->setCustomerMiddlename($quote->getBillingAddress()->getMiddlename());
}
}
Expand Down

0 comments on commit abcf202

Please sign in to comment.