Merge pull request #9407 from demarches-simplifiees/remove-invalid-routing-rule-alert-for-non-routed-procedures

Correctif : ETQ admin je ne vois pas d'alerte sur les groupes d'instructeurs à la publication d'une révision d'une démarche non routée
This commit is contained in:
Eric Leroy-Terquem 2023-08-29 12:39:13 +00:00 committed by GitHub
commit f4fba550ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")