mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
store display_summary_row in the model
This commit is contained in:
@@ -50,7 +50,6 @@ module Admin
|
||||
end
|
||||
|
||||
# Initialize data
|
||||
params[:display_summary_row] = true if request.get?
|
||||
@params_fields_to_show = render_options.options[:fields_to_show]
|
||||
|
||||
@data = Reporting::FrontendData.new(spree_current_user)
|
||||
|
||||
@@ -74,11 +74,13 @@ module ReportsActions
|
||||
else
|
||||
[]
|
||||
end
|
||||
new_instance.options[:display_summary_row] = request.get? || params[:display_summary_row].present?
|
||||
end
|
||||
if params[:fields_to_show].present?
|
||||
@render_options.options[:fields_to_show] = params[:fields_to_show]
|
||||
@render_options.save
|
||||
end
|
||||
@render_options.options[:display_summary_row] = params[:display_summary_row].present?
|
||||
@render_options.save
|
||||
@render_options
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user