From: jitendrapurohit Date: Thu, 10 Jul 2014 10:58:50 +0000 (+0530) Subject: CRM-14957 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8e3748f28b598ccec1e7eb55bf908923ae8c136;p=civicrm-core.git CRM-14957 --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 4f82025263..ef3acfb08e 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1682,6 +1682,7 @@ WHERE id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )'; $formValues['contact_id'] = $this->_contactID; + $formValues['contribution_id'] = CRM_Member_BAO_Membership::getMembershipContributionId($membership->id); // send email receipt $mailSend = self::emailReceipt($this, $formValues, $membership); } @@ -1855,9 +1856,6 @@ 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']);