From 3690edb7e806b6ab011037dd8e1875227ca1c8be Mon Sep 17 00:00:00 2001 From: Sunil Pawar Date: Tue, 14 Sep 2021 14:52:15 +0530 Subject: [PATCH] dev/core#2833 Fix Contact Type change on Backend Membership Credit Card Signup and Renewal --- CRM/Contribute/Form/AbstractEditPayment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index cde9b1ea0a..1664141650 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -634,9 +634,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') ); } -- 2.25.1