From: Pratik Joshi Date: Thu, 6 Mar 2014 08:51:39 +0000 (+0530) Subject: CRM-13965-qa-fixes : fix for participant status not getting changed for credit card... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f635d62a7040e8b47e9f9d14465502a20fdf2373;p=civicrm-core.git CRM-13965-qa-fixes : fix for participant status not getting changed for credit card form submission --- diff --git a/CRM/Contribute/Form/AdditionalPayment.php b/CRM/Contribute/Form/AdditionalPayment.php index 61238510ca..d98f4a51d9 100644 --- a/CRM/Contribute/Form/AdditionalPayment.php +++ b/CRM/Contribute/Form/AdditionalPayment.php @@ -604,6 +604,10 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract } // process the additional payment + $participantId = NULL; + if ($this->_component == 'event') { + $participantId = $this->_id; + } $trxnRecord = CRM_Contribute_BAO_Contribution::recordAdditionalPayment($this->_contributionId, $submittedValues, $this->_paymentType, $participantId); if ($trxnRecord->id && !empty($this->_params['is_email_receipt'])) {