From 6c2ee06366372d23d204a5f40df68a9c4b8e75cb Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 26 Mar 2021 16:26:06 +1300 Subject: [PATCH] Move tpl assignment to email function --- CRM/Member/Form/Membership.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index c435bde729..6f7bbf7bac 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1072,10 +1072,6 @@ DESC limit 1"); $params['receipt_date'] = $formValues['receive_date'] ?? NULL; } - //insert financial type name in receipt. - $formValues['contributionType_name'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', - $this->getFinancialTypeID() - ); } // process line items, until no previous line items. @@ -1600,6 +1596,10 @@ DESC limit 1"); $this->assign('is_pay_later', 0); $this->assign('isPrimary', 1); } + //insert financial type name in receipt. + $formValues['contributionType_name'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', + $this->getFinancialTypeID() + ); return $this->emailReceipt($this, $formValues, $membership); } -- 2.25.1