From 34434cd4bd65049e3c2fa8fdf92a17e88c2e7878 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 7 Oct 2014 18:29:28 +0530 Subject: [PATCH] CRM-15423 --- CRM/Contribute/Form/Contribution.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1