aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorIN COMMON Collective <collective@incommon.cc>2021-03-22 22:43:24 +0100
committerIN COMMON Collective <collective@incommon.cc>2021-03-22 22:43:24 +0100
commit2ab72be43107e23cc325bf0bb4f449a8eb697277 (patch)
tree037e6443e480c8ff425dc661dd919959a46992b2 /app/views
parentd631419750908c5b96aa30c410abcc897a8dd2a6 (diff)
downloadincommon-map-2ab72be43107e23cc325bf0bb4f449a8eb697277.tar.gz
[FIX] Honor current Agent selection
Diffstat (limited to 'app/views')
-rw-r--r--app/views/welcome/dashboard.html.erb2
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>