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:
Jean-Philippe Lang 2009-12-12 11:05:06 +00:00
parent 1f47d5856e
commit 72ceefd36e
1 changed files with 1 additions and 1 deletions

View File

@ -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][]', '' %>