fix(expert_procedure): flash once
This commit is contained in:
parent
afa9821edb
commit
f83c565297
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue