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

report clean up templates #24504

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Conversation

yashodha
Copy link
Contributor

Overview

report clean up templates

Before

no need to have tpl

After

goes away!

@civibot
Copy link

civibot bot commented Sep 13, 2022

(Standard links)

@civibot civibot bot added the master label Sep 13, 2022
@colemanw
Copy link
Member

Interesting. So the form code automatically defaults to the generic tpl if a specific one is missing?

@demeritcowboy
Copy link
Contributor

Yeah it's a very strange OO-but-not-OO pattern. In normal OO, Report_Form::getTemplateFileName would just return 'Form.tpl', and then if you need an override you'd override getTemplateFileName. For some reason this has procedural code inside the Report_Form::getTemplateFileName to simulate the reverse of that override mechanism.

@demeritcowboy demeritcowboy merged commit 5e08aa6 into civicrm:master Sep 13, 2022
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.

3 participants