create membership for the organisation rather than for the individual
This commit is contained in:
parent
68697570d0
commit
d66c4934a6
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
// CREATE the membership if required
|
||||
if (isset($membership_type_id)) {
|
||||
$membership_data = [
|
||||
'contact_id' => $contact_id,
|
||||
'contact_id' => $organisation_id ?? $contact_id,
|
||||
'membership_type_id' => $membership_type_id,
|
||||
];
|
||||
// set campaign, subject to configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue