Allow headers and footers for JSON format

You wouldn't want it by default, but it can be enabled with a parameter like display_summary_row=true
This commit is contained in:
David Cook
2023-02-21 13:58:19 +11:00
committed by Filipe
parent db7ac904e9
commit 6f41a4168d

View File

@@ -12,7 +12,7 @@ module Reporting
# Strip header and summary rows for these formats
def raw_render?
@report.params[:report_format].in?(['json', 'csv'])
@report.params[:report_format].in?(['csv'])
end
# Do not format values for these output formats