Skip to content
Snippets Groups Projects
Commit 718de6c7 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

added a condition on project -> members association so that only active users...

added a condition on project -> members association so that only active users are considered as members

git-svn-id: http://redmine.rubyforge.org/svn/trunk@116 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d81a1357
Branches
Tags
No related merge requests found
......@@ -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]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment