fix(expert_export): an expert export excludes annotation and avis
This commit is contained in:
parent
c62d83a7f5
commit
84d08d4d24
3 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue