Merge pull request #8393 from mfo/US/fix-missing-dossier-preload

amelioration(instructeurs/dossiers#show): supprime le double chargement des champs et annotations privées
This commit is contained in:
mfo 2023-01-10 17:49:40 +01:00 committed by GitHub
commit eeb9fdcb46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,10 +275,7 @@ module Instructeurs
end end
def dossier_with_champs def dossier_with_champs
@dossier ||= DossierPreloader.load_one(dossier_scope @dossier ||= DossierPreloader.load_one(dossier_scope.find(params[:dossier_id]))
.with_champs
.with_annotations
.find(params[:dossier_id]))
end end
def commentaire_params def commentaire_params