Removes duplicate ids (#15485).
git-svn-id: http://svn.redmine.org/redmine/trunk@12655 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f4f3756fcc
commit
d3106af830
|
@ -1,7 +1,7 @@
|
|||
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
|
||||
<div class="box">
|
||||
<% Group.all.sort.each do |group| %>
|
||||
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br />
|
||||
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group), :id => nil %> <%=h group %></label><br />
|
||||
<% end %>
|
||||
<%= hidden_field_tag 'user[group_ids][]', '' %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue