From: jitendrapurohit Date: Tue, 7 Oct 2014 12:59:28 +0000 (+0530) Subject: CRM-15423 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=34434cd4bd65049e3c2fa8fdf92a17e88c2e7878;p=civicrm-core.git CRM-15423 --- diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 211d2e445d..7743fb77fe 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -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);