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

dev/financial#72 Modify getTemplateContribution() to use is_template field #15456

Merged
merged 3 commits into from
Oct 9, 2019

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Oct 8, 2019

Overview

Further part of dev/financial#72 - modify getTemplateContribution to prefer Contribution's with is_template

Before

getTemplateContribution() ignores is_template field

After

getTemplateContribution() prefers is_template field, falls back to old method.

@civibot
Copy link

civibot bot commented Oct 8, 2019

(Standard links)

@civibot civibot bot added the master label Oct 8, 2019
aydun added 2 commits October 9, 2019 09:28
- non-test recurs should only pick up non-test templates
- test recurs should only pick up test templates
Add test
@aydun aydun force-pushed the change_getTemplateContrib branch from b91a542 to f306dbe Compare October 9, 2019 09:59
@aydun aydun changed the title [WIP] dev/financial#72 Modify getTemplateContribution() to use is_template field dev/financial#72 Modify getTemplateContribution() to use is_template field Oct 9, 2019
@aydun
Copy link
Contributor Author

aydun commented Oct 9, 2019

@eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor

This code looks good - logic as discussed / agreed in Barcelona sprint. We need to do some documenting !

Test looks good & existing test cover on this is really solid

@eileenmcnaughton eileenmcnaughton merged commit ded799d into civicrm:master Oct 9, 2019
@aydun aydun deleted the change_getTemplateContrib branch October 9, 2019 13:01
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