Merge pull request #9559 from colinux/demande-preload-dossier

ETQ usager, accélère les affichages de la demande d'un dossier et de son PDF
This commit is contained in:
Colin Darie 2023-10-03 17:15:47 +00:00 committed by GitHub
commit 975baf5460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,18 +83,20 @@ module Users
end
def show
@dossier = dossier
respond_to do |format|
format.pdf do
@dossier = dossier_with_champs(pj_template: false)
@include_infos_administration = false
render(template: 'dossiers/show', formats: [:pdf])
end
format.all
format.all do
@dossier = dossier
end
end
end
def demande
@dossier = dossier
@dossier = dossier_with_champs(pj_template: false)
end
def messagerie