From: Web Access Date: Thu, 2 Apr 2015 10:29:30 +0000 (+0530) Subject: Fix for CRM-16216 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3102732678724906db8d1c9086966aa4e2808b6f;p=civicrm-core.git Fix for CRM-16216 --- 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, )); }