Skip to content

Commit cf0235d

Browse files
jdartjdart-bold
andauthored
CHK-8123: Billing address email cannot be updated (#323)
Co-authored-by: Jonathan Dart <jonathan.dart@boldcommerce.com>
1 parent fc5a6a3 commit cf0235d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Quote/SetQuoteAddresses.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public function setAddresses(
114114
*/
115115
private function addressDataChanged(AddressInterface $originalAddress, AddressInterface $newAddress): bool
116116
{
117-
return $originalAddress->getFirstname() !== $newAddress->getFirstname()
117+
return $originalAddress->getEmail() !== $newAddress->getEmail()
118+
|| $originalAddress->getFirstname() !== $newAddress->getFirstname()
118119
|| $originalAddress->getLastname() !== $newAddress->getLastname()
119120
|| $originalAddress->getStreet() !== $newAddress->getStreet()
120121
|| $originalAddress->getCity() !== $newAddress->getCity()

0 commit comments

Comments
 (0)