CRM-13957 - import - undefined index when mapping fields
authorJamie McClelland <jm@mayfirst.org>
Wed, 11 Dec 2013 18:32:44 +0000 (13:32 -0500)
committerJamie McClelland <jm@mayfirst.org>
Wed, 11 Dec 2013 18:32:44 +0000 (13:32 -0500)
----------------------------------------
* CRM-13957: 2nd page of Import script reports undefined index
  http://issues.civicrm.org/jira/browse/CRM-13957

CRM/Contact/Import/Form/MapField.php

index 27c5254e69682b2ead8f72d3e5bb61c8bb3079ca..195d36649fe11e28ff5677427efa5e49f5558d3a 100644 (file)
@@ -344,6 +344,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
         //Modified the Relationship fields if the fields are
         //present in dedupe rule
         if ($this->_onDuplicate != CRM_Import_Parser::DUPLICATE_NOCHECK &&
+          CRM_Utils_Array::value($cType, $this->_dedupeFields) &&
           is_array($this->_dedupeFields[$cType])
         ) {
           static $cTypeArray = array();