From: Daniƫl <9696905+DanielvV@users.noreply.github.com> Date: Wed, 27 Sep 2017 07:25:42 +0000 (+0200) Subject: CRM-21214 - Fix address sharing 1 - small change X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8f7c832f0c06666f30f5d76341ea390b824df830;p=civicrm-core.git CRM-21214 - Fix address sharing 1 - small change --- diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index 738d7f6371..ac9b9256ba 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -835,7 +835,6 @@ INNER JOIN civicrm_contact contact_target ON ( contact_target.id = act.contact_i //if address master address is shared, use its master (prevent chaining) CRM-21214 if ($masterAddress->master_id > 0) { $values['master_id'] = $masterAddress->master_id; - $masterAddress = new CRM_Core_BAO_Address(); $masterAddress->id = CRM_Utils_Array::value('master_id', $values); $masterAddress->find(TRUE); }