Allow a "source" for contributions be configured per profile.
This commit is contained in:
parent
5ce76eae5f
commit
d28248723b
4 changed files with 17 additions and 0 deletions
|
@ -451,6 +451,9 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
if (!empty($campaign = $profile->getAttribute('campaign'))) {
|
||||
$contribution_data['campaign_id'] = $campaign;
|
||||
}
|
||||
if (!empty($contribution_source = $profile->getAttribute('contribution_source'))) {
|
||||
$contribution_data['source'] = $contribution_source;
|
||||
}
|
||||
|
||||
if (
|
||||
CRM_Twingle_Submission::civiSepaEnabled()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue