Skip to content

Commit

Permalink
Merge pull request #1889 from mailchimp/Issue1863-2.3.6-p1
Browse files Browse the repository at this point in the history
closes #1863 for magento 2.3.6-p1
  • Loading branch information
gonzaloebiz authored Feb 23, 2024
2 parents bcdad5e + 4c0dd55 commit a43a348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Api/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected function _buildCustomerData(\Magento\Customer\Model\Customer $customer
* @var $country \Magento\Directory\Model\Country
*/
$country = $this->_countryFactory->create()->loadByCode($address->getCountryId());
$customerAddress["country"] = $country->getName('en_US');
$customerAddress["country"] = preg_replace('/\&/', 'and',$country->getName('en_US'));
$customerAddress["country_code"] = $address->getCountryId();
}
if (count($customerAddress)) {
Expand Down

0 comments on commit a43a348

Please sign in to comment.