Merge pull request #9478 from mfo/US/fix-manager-dossier-show

correctif(manager#dossiers/show): ETQ superadmin, l'affichage d'un dossier pouvait timeouter car non préloadé
This commit is contained in:
mfo 2023-09-18 08:36:54 +00:00 committed by GitHub
commit 2e2782c8b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,5 +25,9 @@ module Manager
def paginate_resources(_resources)
super.without_count
end
def find_resource(param)
DossierPreloader.load_one(Dossier.find(param))
end
end
end