Merged r11640 from trunk (#12968).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11655 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-03-19 18:37:33 +00:00
parent cfec2018e3
commit f98f9b9ae1
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -892,7 +892,7 @@ class Issue < ActiveRecord::Base
@soonest_start = nil if reload
@soonest_start ||= (
relations_to(reload).collect{|relation| relation.successor_soonest_start} +
ancestors.collect(&:soonest_start)
[(@parent_issue || parent).try(:soonest_start)]
).compact.max
end