use export template for admin archives

This commit is contained in:
Christophe Robillard 2024-03-12 15:39:29 +01:00 committed by simon lehericey
parent 4a79ecf301
commit be0c0311c5
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -34,7 +34,11 @@ module Administrateurs
private private
def export_format def export_format
@export_format ||= params[:export_format] @export_format ||= params[:export_format].presence || export_template&.kind
end
def export_template
@export_template ||= ExportTemplate.find(params[:export_template_id]) if params[:export_template_id].present?
end end
def export_options def export_options