Skip to content

Commit d1f8a4d

Browse files
committed
ACP2E-3296: Checkout order email confirmation is sent to emails entered in First/Last name
1 parent 471e70c commit d1f8a4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public function validateAddresses(QuoteEntity $quote)
163163
$customerAddress->setPostcode($billingAddress->getPostcode());
164164
$customerAddress->setTelephone($billingAddress->getTelephone());
165165
$customerAddress->setCountryId($billingAddress->getCountryId());
166+
$customerAddress->setCustomAttributes($billingAddress->getCustomAttributes());
166167
$addresses[] = $customerAddress;
167168
}
168169
if ($quote->getShippingAddress()->getCustomerAddressId()) {

app/code/Magento/Quote/Test/Unit/Model/CustomerManagementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ public function testValidateAddressesNotSavedInAddressBook()
268268
{
269269
$this->expectException(ValidatorException::class);
270270
$this->quoteAddressMock->method('getStreet')->willReturn(['test']);
271+
$this->quoteAddressMock->method('getCustomAttributes')->willReturn(['test']);
271272
$this->customerAddressFactoryMock->method('create')
272273
->willReturn($this->customerAddressMock);
273274
$addressMock = $this->getMockBuilder(Address::class)

0 commit comments

Comments
 (0)