From a720b430daabba317f19709be56f089b61d598bb Mon Sep 17 00:00:00 2001 From: Stefan Botzenhart Date: Mon, 16 Nov 2015 15:55:07 +0100 Subject: [PATCH] Pass single role id as array This is to not break existing implementation. Otherwise a lot stuff during the process of adding a member to a project (including invitations) need to be changed. Normally one would just pass a single id. --- .../members/_member_form_non_impaired.html.erb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/members/_member_form_non_impaired.html.erb b/app/views/members/_member_form_non_impaired.html.erb index 57f5337ef2..2d75ee6c86 100644 --- a/app/views/members/_member_form_non_impaired.html.erb +++ b/app/views/members/_member_form_non_impaired.html.erb @@ -66,12 +66,13 @@ See doc/COPYRIGHT.rdoc for more details.
<% options = roles.collect { |obj| [obj.name, obj.id] } %> - <%= select_tag 'member[role_ids]', options_for_select(options), - multiple: false, - no_label: true, - title: l(:label_role_search), - tabIndex: 0, - class: 'form--select' %> + <%= select_tag 'member[role_ids][]', options_for_select(options), + multiple: false, + no_label: true, + title: l(:label_role_search), + tabIndex: 0, + class: 'form--select', + id: 'member_role_ids' %>