remove duplicate setting of custom data after checking that custom data is still...
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 16 Mar 2015 12:43:08 +0000 (01:43 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 16 Mar 2015 12:43:08 +0000 (01:43 +1300)
CRM/Contact/Form/Relationship.php

index 453178ad73322ba93cc7fbb5a0e6d541f1c1676a..e36ef2b54445a29aab6090ebbaf034b10b14b9ed 100644 (file)
@@ -434,15 +434,6 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
       $params['contact_id_' .  $relationshipTypeParts[2]] = explode(',', $params['related_contact_id']);
     }
 
-    // @todo create multiple probably does this - test!
-    $customFields = CRM_Core_BAO_CustomField::getFields('Relationship', FALSE, FALSE, $params['relationship_type_id']);
-    $params['custom'] = CRM_Core_BAO_CustomField::postProcess(
-      $params,
-      $customFields,
-      $this->_relationshipId,
-      'Relationship'
-    );
-
     // Save the relationships.
     $outcome = CRM_Contact_BAO_Relationship::createMultiple($params, $relationshipTypeParts[1]);
     $relationshipIds = $outcome['relationship_ids'];