From 2ab72be43107e23cc325bf0bb4f449a8eb697277 Mon Sep 17 00:00:00 2001 From: IN COMMON Collective Date: Mon, 22 Mar 2021 22:43:24 +0100 Subject: [FIX] Honor current Agent selection --- app/views/welcome/dashboard.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/welcome/dashboard.html.erb b/app/views/welcome/dashboard.html.erb index 242fc58..42b827a 100644 --- a/app/views/welcome/dashboard.html.erb +++ b/app/views/welcome/dashboard.html.erb @@ -4,7 +4,7 @@

<%= form_for current_agent, url: '/my/current_agent', method: :patch do |f| %> En cours : <%= f.submit('select') %> - <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }), selected: current_agent.id) %> + <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }, current_agent.id)) %> <% end %>

-- cgit v1.2.3