Projekt

Allgemein

Profil

GX-Bug #47285 » UnknownCustomerCountryFix.patch

/GXMainComponents/Services/Core/Country/CustomerCountryRepository.inc.php - Till Tepelmann, 04.07.2016 13:23

Unterschiede anzeigen:

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;
    (1-1/1)