Fix for CRM-16216
authorWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 2 Apr 2015 10:29:30 +0000 (15:59 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 2 Apr 2015 10:29:30 +0000 (15:59 +0530)
CRM/Core/BAO/Address.php

index f04a9d14601cc79da66212ea79b1f52830c3f3c8..67e2d753cadd0c5374798ccd5cc2a8239be07c48 100644 (file)
@@ -1155,8 +1155,6 @@ SELECT is_primary,
       $relationshipType = 'Household Member of';
     }
 
-    $cid = array('contact' => $currentContactId);
-
     $relTypeId = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_RelationshipType', $relationshipType, 'id', 'name_a_b');
 
     if (!$relTypeId) {
@@ -1168,7 +1166,7 @@ SELECT is_primary,
       civicrm_api3('relationship', 'create', array(
         'is_active' => TRUE,
         'relationship_type_id' => $relTypeId,
-        'contact_id_a' => $cid,
+        'contact_id_a' => $currentContactId,
         'contact_id_b' => $sharedContactId,
       ));
     }