Fix handling of importing 'primary
authoreileen <emcnaughton@wikimedia.org>
Fri, 12 Apr 2019 07:51:50 +0000 (17:51 +1000)
committereileen <emcnaughton@wikimedia.org>
Wed, 24 Apr 2019 03:28:58 +0000 (15:28 +1200)
commit2ab10f80577bfe18cfed88e5e0f75f9321593d78
tree45bf63de0cfdd4390e20a46653289f29bf39fa53
parent6eca48d05313acc8deb75207bbd2145c67d1e633
Fix handling of importing 'primary
' phone & email and enable test

Prior to this selecting 'Primary' as location_type_id for phone or email will result in duplicates.

This also simplifies the indexing to be by location type, as it is with addresses, as the code is kinda
confusing
CRM/Contact/Import/Parser.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php