CRM-14957
authorjitendrapurohit <jituraj7760@gmail.com>
Thu, 10 Jul 2014 05:18:52 +0000 (10:48 +0530)
committerjitendrapurohit <jituraj7760@gmail.com>
Thu, 10 Jul 2014 05:18:52 +0000 (10:48 +0530)
CRM/Member/Form/Membership.php

index 2b7c047fa4952ee003c39be3d8ff8ca040a0540a..4f82025263a1c1a6c377906eed901b32acc5236c 100644 (file)
@@ -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']);