fix(publication): remove invalid routing rule alert for non routed procedures

This commit is contained in:
Eric Leroy-Terquem 2023-08-22 14:35:27 +02:00
parent fe78522f37
commit 690aad8665

View file

@ -148,7 +148,7 @@
- if @private_move_changes.present? - if @private_move_changes.present?
- list.with_item do - list.with_item do
= t(".private.move", count: @private_move_changes.size) = t(".private.move", count: @private_move_changes.size)
- if @previous_revision.procedure.groupe_instructeurs.any?(&:invalid_rule?) - if @previous_revision.procedure.routing_enabled? && @previous_revision.procedure.groupe_instructeurs.any?(&:invalid_rule?)
- list.with_item do - list.with_item do
.fr-alert.fr-alert--warning.fr-mt-1v .fr-alert.fr-alert--warning.fr-mt-1v
= t(".invalid_routing_rules_alert") = t(".invalid_routing_rules_alert")