diff app/views/groups/.svn/text-base/_users.html.erb.svn-base @ 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 94944d00e43c
children
line wrap: on
line diff
--- a/app/views/groups/.svn/text-base/_users.html.erb.svn-base	Thu Mar 03 11:42:28 2011 +0000
+++ b/app/views/groups/.svn/text-base/_users.html.erb.svn-base	Mon Jun 06 14:24:13 2011 +0100
@@ -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>