Mercurial > hg > soundsoftware-site
comparison app/controllers/groups_controller.rb @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 1d32c0a0efbf |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
130 end | 130 end |
131 end | 131 end |
132 | 132 |
133 def autocomplete_for_user | 133 def autocomplete_for_user |
134 @group = Group.find(params[:id]) | 134 @group = Group.find(params[:id]) |
135 @users = User.active.like(params[:q]).find(:all, :limit => 100) - @group.users | 135 @users = User.active.not_in_group(@group).like(params[:q]).all(:limit => 100) |
136 render :layout => false | 136 render :layout => false |
137 end | 137 end |
138 | 138 |
139 def edit_membership | 139 def edit_membership |
140 @group = Group.find(params[:id]) | 140 @group = Group.find(params[:id]) |