From 3102732678724906db8d1c9086966aa4e2808b6f Mon Sep 17 00:00:00 2001 From: Web Access Date: Thu, 2 Apr 2015 15:59:30 +0530 Subject: [PATCH] Fix for CRM-16216 --- CRM/Core/BAO/Address.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index f04a9d1460..67e2d753ca 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -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, )); } -- 2.25.1