mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Packing report don't need untranslated headers for xlxs, csv format
This commit is contained in:
@@ -29,13 +29,6 @@ module Reporting
|
||||
{ quantity: :quantity }
|
||||
end
|
||||
|
||||
def custom_headers
|
||||
return {} if html_render?
|
||||
|
||||
# Use non translated headers to avoid breaking changes
|
||||
@custom_headers ||= report_data.columns.index_by(&:itself).symbolize_keys
|
||||
end
|
||||
|
||||
def default_params
|
||||
# Prevent breaking change in this report by hidding new columns by default
|
||||
{ fields_to_hide: ["phone", "price"],
|
||||
|
||||
Reference in New Issue
Block a user