diff --git a/app/controllers/administrateurs/procedures_controller.rb b/app/controllers/administrateurs/procedures_controller.rb index bf5d59b32..8f0bea669 100644 --- a/app/controllers/administrateurs/procedures_controller.rb +++ b/app/controllers/administrateurs/procedures_controller.rb @@ -82,7 +82,14 @@ module Administrateurs end def show - @procedure = current_administrateur.procedures.find(params[:id]) + @procedure = current_administrateur + .procedures + .includes( + published_revision: { revision_types_de_champ: :type_de_champ }, + draft_revision: { revision_types_de_champ: :type_de_champ } + ) + .find(params[:id]) + @current_administrateur = current_administrateur @procedure_lien = commencer_url(path: @procedure.path) @procedure_lien_test = commencer_test_url(path: @procedure.path)