Fixed the behaviour for when rescheduling a parent task (#4590).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10880 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-11-24 15:09:51 +00:00
parent fb9a2901e9
commit 96e01c6d4a
1 changed files with 9 additions and 1 deletions

View File

@ -907,8 +907,16 @@ class Issue < ActiveRecord::Base
end
else
leaves.each do |leaf|
if leaf.start_date
# Only move subtask if it starts at the same date as the parent
# or if it starts before the given date
if start_date == leaf.start_date || date > leaf.start_date
leaf.reschedule_on!(date)
end
else
leaf.reschedule_on!(date)
end
end
end
end