summaryrefslogtreecommitdiffstats
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 16:47:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 16:47:30 +0000
commitb972b5a647cae4cef4dfeb9686cb529705886107 (patch)
tree7ed1e980c1183c6e6c254f383d5e358556eba18e /app/controllers/groups_controller.rb
parent4e7835c68c7dc6e1011f6513971f5561fcfd172d (diff)
downloadredmine-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/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 29e4e4b07..db56eff96 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -132,7 +132,7 @@ class GroupsController < ApplicationController
def autocomplete_for_user
@group = Group.find(params[:id])
- @users = User.active.like(params[:q]).find(:all, :limit => 100) - @group.users
+ @users = User.active.not_in_group(@group).like(params[:q]).all(:limit => 100)
render :layout => false
end