Include subprojects on the issue list, calendar and gantt by default.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1178 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-02-28 21:57:03 +00:00
parent 1ddb59df2a
commit b6bd5c7f12
6 changed files with 36 additions and 19 deletions
+6
View File
@@ -231,4 +231,10 @@ class Issue < ActiveRecord::Base
def soonest_start
@soonest_start ||= relations_to.collect{|relation| relation.successor_soonest_start}.compact.min
end
def self.visible_by(usr)
with_scope(:find => { :conditions => Project.visible_by(usr) }) do
yield
end
end
end