This commit is contained in:
Marc Koch 2025-02-21 15:03:09 +01:00 committed by GitHub
commit 5cf6ee180a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -890,7 +890,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
// CREATE the membership if required // CREATE the membership if required
if (isset($membership_type_id)) { if (isset($membership_type_id)) {
$membership_data = [ $membership_data = [
'contact_id' => $contact_id, 'contact_id' => $organisation_id ?? $contact_id,
'membership_type_id' => $membership_type_id, 'membership_type_id' => $membership_type_id,
]; ];
// set campaign, subject to configuration // set campaign, subject to configuration