Fixed that the proposed users list may be empty when adding a project member (#10374).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9128 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-06 18:37:30 +00:00
parent b7555bd1ff
commit 6aad82e524
4 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class MembersController < ApplicationController
end
def autocomplete
@principals = Principal.active.like(params[:q]).find(:all, :limit => 100) - @project.principals
@principals = Principal.active.not_member_of(@project).like(params[:q]).all(:limit => 100)
render :layout => false
end