From c70d8487889aba2a1e1c2186105edc46576c41c3 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 20 Feb 2024 13:12:14 +0100 Subject: [PATCH] fix(attestation): preload revisions & types de champs --- .../administrateurs/attestation_template_v2s_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/administrateurs/attestation_template_v2s_controller.rb b/app/controllers/administrateurs/attestation_template_v2s_controller.rb index 073b2526e..e5e8783df 100644 --- a/app/controllers/administrateurs/attestation_template_v2s_controller.rb +++ b/app/controllers/administrateurs/attestation_template_v2s_controller.rb @@ -2,7 +2,10 @@ module Administrateurs class AttestationTemplateV2sController < AdministrateurController include UninterlacePngConcern - before_action :retrieve_procedure, :retrieve_attestation_template, :ensure_feature_active + before_action :retrieve_procedure + before_action :ensure_feature_active + before_action :retrieve_attestation_template + before_action :preload_revisions, only: [:edit, :update, :create] def show preview_dossier = @procedure.dossier_for_preview(current_user)