Sort groups on user groups setting (#4389).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3160 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1f47d5856e
commit
72ceefd36e
|
@ -1,6 +1,6 @@
|
|||
<% form_for(:user, :url => { :action => 'edit' }) do %>
|
||||
<div class="box">
|
||||
<% Group.all.each do |group| %>
|
||||
<% Group.all.sort.each do |group| %>
|
||||
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br />
|
||||
<% end %>
|
||||
<%= hidden_field_tag 'user[group_ids][]', '' %>
|
||||
|
|
Loading…
Reference in New Issue