From 8bddb56c8694d09f8470b15a65088a95bc5ab9ed Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 10 Jul 2014 10:48:52 +0530 Subject: [PATCH] CRM-14957 --- CRM/Member/Form/Membership.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 2b7c047fa4..4f82025263 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1855,6 +1855,9 @@ WHERE id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )'; elseif (isset($form->_onlinePendingContributionId)) { $form->assign('contributionID', $form->_onlinePendingContributionId); } + elseif (!empty($form->_defaultValues['contribution_id'])) { + $form->assign('contributionID', $form->_defaultValues['contribution_id']); + } if (!empty($formValues['contribution_status_id'])) { $form->assign('contributionStatusID', $formValues['contribution_status_id']); -- 2.25.1