Skip to content

Commit

Permalink
Merge pull request #20013 from eileenmcnaughton/mem_mover
Browse files Browse the repository at this point in the history
Move tpl assignment to email function
  • Loading branch information
eileenmcnaughton authored Apr 9, 2021
2 parents c2655a0 + 6c2ee06 commit 66388ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Member/Form/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,6 @@ public function submit(): void {
$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.
Expand Down Expand Up @@ -1600,6 +1596,10 @@ protected function emailMembershipReceipt($formValues, $membership) {
$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);
}

Expand Down

0 comments on commit 66388ad

Please sign in to comment.