Merge pull request #23080 from eileenmcnaughton/isset
[civicrm-core.git] / CRM / Contribute / Form / AbstractEditPayment.php
index 8e2cd57615747a032156f576713d814c15de9ee3..b16638ac6f942af3a9ead00ce7119c879725cf19 100644 (file)
@@ -663,9 +663,10 @@ WHERE  contribution_id = {$id}
       }
       //here we are setting up the billing contact - if different from the member they are already created
       // but they will get billing details assigned
+      $addressParams['contact_id'] = $this->_contributorContactID;
       CRM_Contact_BAO_Contact::createProfileContact($addressParams, $fields,
         $this->_contributorContactID, NULL, NULL,
-        CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactID, 'contact_type')
+        CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contributorContactID, 'contact_type')
       );
     }