From 4c7664d61cd652f591378ae0b8689e2bd357fb69 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 21 Sep 2023 16:51:50 +0200 Subject: [PATCH] fix(admin): missing siret & service alert don't override action alert Co-Authored-By: Christophe Robillard --- app/controllers/administrateurs/administrateur_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/administrateurs/administrateur_controller.rb b/app/controllers/administrateurs/administrateur_controller.rb index ff93420d9..149d87bc8 100644 --- a/app/controllers/administrateurs/administrateur_controller.rb +++ b/app/controllers/administrateurs/administrateur_controller.rb @@ -42,6 +42,8 @@ module Administrateurs end def alert_for_missing_siret_service + return if flash[:alert].present? + procedures = missing_siret_services if procedures.any? errors = [] @@ -61,6 +63,8 @@ module Administrateurs end def alert_for_missing_service + return if flash[:alert].present? + procedures = missing_service if procedures.any? errors = []