Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tpl assignment to email function #20013

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Move tpl assignment to email function

Before

Value is added to formValues & passed around until it gets where it may be needed

After

value is loaded in the function for sending an email (which is where it may be needed, if an email is to be sent) -the value is referenced in the message template (yuck)

Technical Details

Comments

@civibot
Copy link

civibot bot commented Apr 9, 2021

(Standard links)

@civibot civibot bot added the master label Apr 9, 2021
@@ -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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a general urgh here for the variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamuslee001 just hold your nose & look away

@eileenmcnaughton eileenmcnaughton merged commit 66388ad into civicrm:master Apr 9, 2021
@eileenmcnaughton eileenmcnaughton deleted the mem_mover branch April 9, 2021 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants