From 05d09dc472cdb1bcbd14afbccc777deeb125c3f3 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 29 Aug 2017 10:49:15 +0530 Subject: [PATCH] CRM-21117: Enable useForMember for pending membership signup --- CRM/Contribute/Form/Contribution/Confirm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index e135a2b644..56ce6b5568 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1664,6 +1664,8 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $emailValues = array_merge($membershipParams, $form->_values); $emailValues['membership_assign'] = 1; + $emailValues['useForMember'] = !empty($form->_useForMember); + // Finally send an email receipt for pay-later scenario (although it might sometimes be caught above!) if ($totalAmount == 0) { // This feels like a bizarre hack as the variable name doesn't seem to be directly connected to it's use in the template. -- 2.25.1