diff options
author | IN COMMON Collective <collective@incommon.cc> | 2021-03-22 22:43:24 +0100 |
---|---|---|
committer | IN COMMON Collective <collective@incommon.cc> | 2021-03-22 22:43:24 +0100 |
commit | 2ab72be43107e23cc325bf0bb4f449a8eb697277 (patch) | |
tree | 037e6443e480c8ff425dc661dd919959a46992b2 /app/views/welcome | |
parent | d631419750908c5b96aa30c410abcc897a8dd2a6 (diff) | |
download | incommon-map-2ab72be43107e23cc325bf0bb4f449a8eb697277.tar.gz |
[FIX] Honor current Agent selection
Diffstat (limited to 'app/views/welcome')
-rw-r--r-- | app/views/welcome/dashboard.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <p><%= 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 %></p> |