CRM-15423
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 7 Oct 2014 12:59:28 +0000 (18:29 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 7 Oct 2014 12:59:28 +0000 (18:29 +0530)
CRM/Contribute/Form/Contribution.php

index 211d2e445d913cf48b059cb0ff0507d8118935c4..7743fb77fe6a6314385c90c6b0d3c33399b6f129 100644 (file)
@@ -1037,6 +1037,9 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
         elseif ($this->_context == 'membership') {
           $isRelatedId = TRUE;
         }
+        else {
+          $pId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $this->_id, 'participant_id', 'contribution_id');
+        }
       }
       else {
         $contributionDetails = CRM_Contribute_BAO_Contribution::getComponentDetails($this->_id);