diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 16:47:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 16:47:30 +0000 |
commit | b972b5a647cae4cef4dfeb9686cb529705886107 (patch) | |
tree | 7ed1e980c1183c6e6c254f383d5e358556eba18e /app/views/groups | |
parent | 4e7835c68c7dc6e1011f6513971f5561fcfd172d (diff) | |
download | redmine-b972b5a647cae4cef4dfeb9686cb529705886107.tar.gz redmine-b972b5a647cae4cef4dfeb9686cb529705886107.zip |
Fixed: list of users for adding to a group may be empty if 100 first users have been added (#8029).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5284 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/groups')
-rw-r--r-- | app/views/groups/_users.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb index 580851d5a..d7c462e1b 100644 --- a/app/views/groups/_users.html.erb +++ b/app/views/groups/_users.html.erb @@ -24,7 +24,7 @@ </div> <div class="splitcontentright"> -<% users = User.active.find(:all, :limit => 100) - @group.users %> +<% users = User.active.not_in_group(@group).all(:limit => 100) %> <% if users.any? %> <% remote_form_for(:group, @group, :url => {:controller => 'groups', :action => 'add_users', :id => @group}, :method => :post) do |f| %> <fieldset><legend><%=l(:label_user_new)%></legend> |