GX-Bug #47280 » UnknownCustomerCountryFix.patch
| src/GXMainComponents/Services/Core/Country/CustomerCountryRepository.inc.php (revision ) | ||
|---|---|---|
| 89 | 89 |
|
| 90 | 90 |
if(empty($country)) |
| 91 | 91 |
{
|
| 92 |
throw new Exception('Country with the following name could not be found: ' . (string)$countryName);
|
|
| 92 |
$country = $this->customerFactory->createCustomerCountry(new IdType(0), |
|
| 93 |
MainFactory::create('CustomerCountryName',
|
|
| 94 |
(string)$countryName), |
|
| 95 |
MainFactory::create('CustomerCountryIso2',
|
|
| 96 |
'XX'), |
|
| 97 |
MainFactory::create('CustomerCountryIso3',
|
|
| 98 |
'XXX'), |
|
| 99 |
new IdType(1), |
|
| 100 |
true); |
|
| 93 | 101 |
} |
| 94 | 102 |
|
| 95 | 103 |
return $country; |