Master only import regression - fix contactSubType handling
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 2 May 2022 20:44:22 +0000 (08:44 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 2 May 2022 23:52:20 +0000 (11:52 +1200)
commit80cb71bb3c477dcd1047e8cfafd5b2b928df2de4
tree63ed437668e38960b94ed6899e9addb7cf4b5a07
parent1062500743cfe49f419dde49a2b06b8e684e7b3c
Master only import regression - fix contactSubType handling

I found that the fieldname for contactSubType was actually subType
so renamed to contactSubType & ensured the type was set before
metadata loading
CRM/Contact/Import/Form/DataSource.php
CRM/Contact/Import/Form/MapField.php
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/MetadataTrait.php
CRM/Contact/Import/Parser/Contact.php
CRM/Import/Forms.php
CRM/Import/Parser.php
templates/CRM/Contact/Import/Form/DataSource.tpl
tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php