[#31] only create memberships on initial payments
This commit is contained in:
parent
25a040f6d8
commit
4ec0fef825
1 changed files with 4 additions and 1 deletions
|
@ -704,7 +704,10 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
||||||
$membership_type_id = $profile->getAttribute('membership_type_id_recur');
|
$membership_type_id = $profile->getAttribute('membership_type_id_recur');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$membership_type_id = $profile->getAttribute('membership_type_id');
|
// only create memberships, if this isn't an installment
|
||||||
|
if (empty($params['parent_trx_id'])) {
|
||||||
|
$membership_type_id = $profile->getAttribute('membership_type_id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!empty($membership_type_id)) {
|
if (!empty($membership_type_id)) {
|
||||||
// create the membership
|
// create the membership
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue