Ensure subtype is set on processor
authoreileen <emcnaughton@wikimedia.org>
Wed, 4 Sep 2019 22:07:15 +0000 (10:07 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 4 Sep 2019 22:07:15 +0000 (10:07 +1200)
CRM/Contact/Import/Form/MapField.php

index 4b926c314fed2b5e0c94fba9859f06aaa652cb8d..a95847fdd41d1989a30b41141ea0a63b30d78aed 100644 (file)
@@ -400,6 +400,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
     $processor->setFormName($formName);
     $processor->setMetadata($this->getContactImportMetadata());
     $processor->setContactTypeByConstant($this->get('contactType'));
+    $processor->setContactSubType($this->get('contactSubType'));
 
     for ($i = 0; $i < $this->_columnCount; $i++) {
       $sel = &$this->addElement('hierselect', "mapper[$i]", ts('Mapper for Field %1', [1 => $i]), NULL);