diff --git a/app/models/project.rb b/app/models/project.rb index 702ccc07..5f15ad6f 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -17,7 +17,7 @@ class Project < ActiveRecord::Base has_many :versions, :dependent => true, :order => "versions.effective_date DESC, versions.name DESC" - has_many :members, :dependent => true + has_many :members, :dependent => true, :include => :user, :conditions => "users.status=#{User::STATUS_ACTIVE}" has_many :users, :through => :members has_many :custom_values, :dependent => true, :as => :customized has_many :issues, :dependent => true, :order => "issues.created_on DESC", :include => [:status, :tracker]