ensure counties are properly imported even if ambiguous
authorJamie McClelland <jm@mayfirst.org>
Mon, 5 Dec 2022 21:49:21 +0000 (16:49 -0500)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 26 Jun 2023 23:19:09 +0000 (16:19 -0700)
commitdf22acd7b583f3e94b5e1356b646be434dd3f192
tree9714f5d08564f9413a66b218f5134946bc24c834
parentc9e837cb84f8e7aebb03e56f5d701713df69f556
ensure counties are properly imported even if ambiguous

If a county has a unique name, you can import it by name.

But, if there is one or more counties with the same name, the county is
not properly converted to an id, and we get a foreign constraint error
and/or a invalid value error.
CRM/Contact/Import/Parser/Contact.php
tests/phpunit/CRM/Contact/Import/Form/data/individual_country_state_county_with_related.csv
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php