dossier: export PJs from private champs

Fix #5297
This commit is contained in:
Pierre de La Morinerie 2020-06-24 13:21:51 +00:00
parent 6f14e7783f
commit acc1cb1abd
2 changed files with 9 additions and 1 deletions

View file

@ -43,7 +43,7 @@ class PiecesJustificativesService
private
def self.pjs_for_champs(dossier)
allowed_champs = dossier.champs
allowed_champs = dossier.champs + dossier.champs_private
allowed_child_champs = allowed_champs
.filter { |c| c.type_champ == TypeDeChamp.type_champs.fetch(:repetition) }