fix(expert_procedure): flash once

This commit is contained in:
mfo 2024-06-25 14:41:17 +02:00
parent afa9821edb
commit f83c565297
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -45,13 +45,13 @@ module Administrateurs
end end
end end
flash[:notice] = t('.experts_assignment', flash.now[:notice] = t('.experts_assignment',
count: valid_users.count, count: valid_users.count,
value: valid_users.map(&:email).join(', '), value: valid_users.map(&:email).join(', '),
procedure: @procedure.id) procedure: @procedure.id)
end end
flash[:alert] = errors.join(". ") if !errors.empty? flash.now[:alert] = errors.join(". ") if !errors.empty?
render :index render :index
end end