mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user