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

Simplify billingName logic on xml/templates/message_templates/members… #15674

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This continues the patterns set by #15532 and #15646

Before

Complex logic used to include BillingName and also credit card details

After

Less complex logic

@seamuslee001 per my comments on #15651 I think we need to reverse the IF order for this one as the $email is present in both cases so putting it in the elseif works I think

@civibot
Copy link

civibot bot commented Oct 31, 2019

(Standard links)

@civibot civibot bot added the master label Oct 31, 2019
@seamuslee001
Copy link
Contributor

@eileenmcnaughton try that on the contribution_online_receipt and you will have some fun times that is the one that is causing the test failures

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 I know - there is a plan for that one - it involves some tweaks to actually ensure we do assign the variables to the tpl in the completeOrder process - if they have been collected they will be saved as an address linked by the contribution id - so we can get it. In the meantime I figured change all the others except that one & then do that one last.

We could legitimately alter the test - but I suspect the above approach is betttter

@seamuslee001
Copy link
Contributor

ok that makes sense merging

@seamuslee001 seamuslee001 merged commit 2d5c18c into civicrm:master Oct 31, 2019
@seamuslee001 seamuslee001 deleted the tpls branch October 31, 2019 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants