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
def dossier_with_champs
@dossier ||= DossierPreloader.load_one(dossier_scope
.with_champs
.with_annotations
.find(params[:dossier_id]))
@dossier ||= DossierPreloader.load_one(dossier_scope.find(params[:dossier_id]))
end
def commentaire_params