From 6f41a4168d70ecfa07c16405b56cc7d2bdd2760e Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 21 Feb 2023 13:58:19 +1100 Subject: [PATCH] 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 --- lib/reporting/report_renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporting/report_renderer.rb b/lib/reporting/report_renderer.rb index bf90b2f21f..a22f417e4d 100644 --- a/lib/reporting/report_renderer.rb +++ b/lib/reporting/report_renderer.rb @@ -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