Skip to content

Commit 17b76e6

Browse files
author
Oleksandr Iegorov
committed
MC-38900: Mutation setGuestEmailOnCart doesn't update quote address
1 parent cb5b1b8 commit 17b76e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ public function setCustomerId($customerId)
16531653
public function getEmail()
16541654
{
16551655
$email = $this->getData(self::KEY_EMAIL);
1656-
if (!$email && $this->getQuote() && $this->getQuote()->dataHasChangedFor('customer_email')) {
1656+
if ($this->getQuote() && (!$email || $this->getQuote()->dataHasChangedFor('customer_email'))) {
16571657
$email = $this->getQuote()->getCustomerEmail();
16581658
$this->setEmail($email);
16591659
}

0 commit comments

Comments
 (0)