diff --git a/app/services/procedure_export_service.rb b/app/services/procedure_export_service.rb index 98263e9b7..5fff307ce 100644 --- a/app/services/procedure_export_service.rb +++ b/app/services/procedure_export_service.rb @@ -185,10 +185,10 @@ class ProcedureExportService end values = normalize_values(values) values += dossier.champs.reject(&:exclude_from_export?).map do |champ| - value_for_export(champ) + champ.for_export end values += dossier.champs_private.reject(&:exclude_from_export?).map do |champ| - value_for_export(champ) + champ.for_export end values += etablissement_data(dossier.etablissement) values @@ -245,10 +245,6 @@ class ProcedureExportService label.parameterize.underscore.to_sym end - def value_for_export(champ) - champ.for_export - end - def normalize_values(values) values.map do |value| case value