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:
commit
eeb9fdcb46
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue