CiviReport - Title and Statistics appearing at top and bottom of reports (fix identified)
Overview
Reports (e.g. Contribution, membership reports etc) present with Title, query details at top; and Title, query details and Statistics, at bottom of the report.
This appears to be inadvertent - caused by an error in tpl script. See screenshot
Reproduction steps
- Run a report - print or save to pdf
Current behaviour
See outline above.
Expected behaviour
Title and Query at top of report only. Statistics at bottom of report.
Environment information
- __CiviCRM: 5.46.2
Solution
The error in the tpl is here -->
https://lab.civicrm.org/dev/core/-/blob/master/templates/CRM/Report/Form.tpl#L47
Replace:
{include file="CRM/Report/Form/Statistics.tpl" top="false" bottom=true}
With:
{include file="CRM/Report/Form/Statistics.tpl" top=false bottom=true}
I'm not sure how to do a pull request/merge request.