fix(expert_export): an expert export excludes annotation and avis

This commit is contained in:
simon lehericey 2023-01-18 11:42:25 +01:00 committed by Paul Chavard
parent c62d83a7f5
commit 84d08d4d24
3 changed files with 11 additions and 4 deletions

View file

@ -83,7 +83,7 @@ class PiecesJustificativesService
end
end
def self.generate_dossier_export(dossiers)
def self.generate_dossier_export(dossiers, include_infos_administration: false)
return [] if dossiers.empty?
pdfs = []
@ -97,7 +97,7 @@ class PiecesJustificativesService
pdf = ApplicationController
.render(template: 'dossiers/show', formats: [:pdf],
assigns: {
include_infos_administration: true,
include_infos_administration:,
dossier: dossier
})