Skip to content

Commit

Permalink
Merge pull request #9669 from jitendrapurohit/CRM-19172
Browse files Browse the repository at this point in the history
CRM-19172: Fix onbehalf contact id on membership signup
  • Loading branch information
Yashodha Chaku authored Jan 16, 2017
2 parents 7ae669b + 2dc204e commit 6f88f9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2252,6 +2252,9 @@ protected function processFormSubmission($contactID) {
$membershipParams['is_pay_later'] = 1;
}

if (isset($this->_params['onbehalf_contact_id'])) {
$membershipParams['onbehalf_contact_id'] = $this->_params['onbehalf_contact_id'];
}
//inherit campaign from contribution page.
if (!array_key_exists('campaign_id', $membershipParams)) {
$membershipParams['campaign_id'] = CRM_Utils_Array::value('campaign_id', $this->_values);
Expand Down

0 comments on commit 6f88f9a

Please sign in to comment.