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`
This commit is contained in:
Jean-Baptiste Bellet
2022-11-07 11:44:01 +01:00
parent 85017893d3
commit f4572cb8cb

View File

@@ -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?