Fixed: subtasks don't resepect following/precedes relations on creation (#12968).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11640 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user