From f83c565297b0bafd0feb355062a0cd132a6d8248 Mon Sep 17 00:00:00 2001 From: mfo Date: Tue, 25 Jun 2024 14:41:17 +0200 Subject: [PATCH] fix(expert_procedure): flash once --- .../administrateurs/experts_procedures_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/administrateurs/experts_procedures_controller.rb b/app/controllers/administrateurs/experts_procedures_controller.rb index edd06a6c0..c11a04deb 100644 --- a/app/controllers/administrateurs/experts_procedures_controller.rb +++ b/app/controllers/administrateurs/experts_procedures_controller.rb @@ -45,13 +45,13 @@ module Administrateurs end end - flash[:notice] = t('.experts_assignment', + flash.now[:notice] = t('.experts_assignment', count: valid_users.count, value: valid_users.map(&:email).join(', '), procedure: @procedure.id) end - flash[:alert] = errors.join(". ") if !errors.empty? + flash.now[:alert] = errors.join(". ") if !errors.empty? render :index end