CRM-21214 - Fix address sharing 1 - small change
authorDaniël <9696905+DanielvV@users.noreply.github.com>
Wed, 27 Sep 2017 07:25:42 +0000 (09:25 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2017 07:25:42 +0000 (09:25 +0200)
CRM/Contact/BAO/Contact/Utils.php

index 738d7f63711bb315b2cadd14f628635474060928..ac9b9256baa10ca317b06b8430ae10eed5210d62 100644 (file)
@@ -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);
       }