From f28f66703a212ff781c6873b11b766f163f97dbe Mon Sep 17 00:00:00 2001 From: gonzalo Date: Fri, 23 Feb 2024 16:20:27 -0300 Subject: [PATCH] closes #1863 for magento 2.2 --- Model/Api/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Api/Customer.php b/Model/Api/Customer.php index 79c7ab62..6a22ad77 100644 --- a/Model/Api/Customer.php +++ b/Model/Api/Customer.php @@ -234,7 +234,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)) {