Allow contributions be assigned to a configured campaign per profile.
This commit is contained in:
parent
336870c38e
commit
5ce76eae5f
4 changed files with 38 additions and 1 deletions
|
@ -448,6 +448,9 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
if (!empty($params['purpose'])) {
|
||||
$contribution_data['note'] = $params['purpose'];
|
||||
}
|
||||
if (!empty($campaign = $profile->getAttribute('campaign'))) {
|
||||
$contribution_data['campaign_id'] = $campaign;
|
||||
}
|
||||
|
||||
if (
|
||||
CRM_Twingle_Submission::civiSepaEnabled()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue