-
-
Notifications
You must be signed in to change notification settings - Fork 825
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 recurring contribution template inheritance #17178
Simplify recurring contribution template inheritance #17178
Conversation
(Standard links)
|
97eaf68
to
ecfc232
Compare
test this please |
@eileenmcnaughton can you merge this PR? |
The failing test has nothing to do with this PR. So I would assume this could be safely merged. |
OK - the fail does seem unrelated We should use the [REF] in the PR title to make it easier for reviewers to see that there should be code maintenance improvements but no actual change in a PR (this was originally [NFC] but then that became only used for comments & spelling due to Tim challenging the NFC-ness of some of them |
@mattwire @jaapjansma looks like this caused a regression - the enable / disable buttons broke as a result of the very first line in this change |
Overview
Template
CRM/Contribute/Page/ContributionRecur.tpl
is called as an intermediary forCRM/Contribute/Page/ContributionRecurSelector.tpl
when we can just call the latter directly.Before
Chain of templates.
After
Just call it directly and get rid of a big IF in the template.
Technical Details
Comments
Most of the change is just whitespace from removing an "if" from the template
Testing
Make sure that you can still see the list of recurring contributions in the contact summary. And make sure that you can see all the detail when you view a recurring contribution.