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.
pull/3826/head
Stefan Botzenhart 9 years ago
parent ca4c91be40
commit a720b430da
  1. 13
      app/views/members/_member_form_non_impaired.html.erb

@ -66,12 +66,13 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="form--field-container">
<div class="form--select-container -auto">
<% 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' %>
</div>
</div>
</div>

Loading…
Cancel
Save