From f4572cb8cb33591da7042464139f021718a086b5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 7 Nov 2022 11:44:01 +0100 Subject: [PATCH] `nil` is the value of `:report_format` when GETting a report page This method is used in `custom_headers()` method that handle headers customization. Then, it's `@report.available_headers` --- 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 0c56d6daab..274bdf95c2 100644 --- a/lib/reporting/report_renderer.rb +++ b/lib/reporting/report_renderer.rb @@ -15,7 +15,7 @@ module Reporting end def html_render? - @report.params[:report_format].in?(['', 'pdf']) + @report.params[:report_format].in?([nil, '', 'pdf']) end def display_header_row?