CRM-13965-qa-fixes : fix for participant status not getting changed for credit card...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 6 Mar 2014 08:51:39 +0000 (14:21 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 6 Mar 2014 08:51:39 +0000 (14:21 +0530)
CRM/Contribute/Form/AdditionalPayment.php

index 61238510ca2801cdd307ef1bdad4521331a944d3..d98f4a51d9c7a0120db304739b837adff062c27f 100644 (file)
@@ -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'])) {