diff --git a/app/components/procedure/card/annotations_component.rb b/app/components/procedure/card/annotations_component.rb index eb062eb73..82936f6b2 100644 --- a/app/components/procedure/card/annotations_component.rb +++ b/app/components/procedure/card/annotations_component.rb @@ -1,7 +1,6 @@ class Procedure::Card::AnnotationsComponent < ApplicationComponent def initialize(procedure:) @procedure = procedure - @procedure.validate(:publication) @count = @procedure.draft_revision.types_de_champ.private_only.size end diff --git a/app/components/procedure/card/champs_component.rb b/app/components/procedure/card/champs_component.rb index f628b7ce8..939644b48 100644 --- a/app/components/procedure/card/champs_component.rb +++ b/app/components/procedure/card/champs_component.rb @@ -1,7 +1,6 @@ class Procedure::Card::ChampsComponent < ApplicationComponent def initialize(procedure:) @procedure = procedure - @procedure.validate(:publication) @count = @procedure.draft_revision.types_de_champ.public_only.size end diff --git a/app/controllers/administrateurs/procedures_controller.rb b/app/controllers/administrateurs/procedures_controller.rb index db753db6d..52994ee24 100644 --- a/app/controllers/administrateurs/procedures_controller.rb +++ b/app/controllers/administrateurs/procedures_controller.rb @@ -98,6 +98,8 @@ module Administrateurs ) .find(params[:id]) + @procedure.validate(:publication) + @current_administrateur = current_administrateur @procedure_lien = commencer_url(path: @procedure.path) @procedure_lien_test = commencer_test_url(path: @procedure.path)