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:
parent
fb9a2901e9
commit
96e01c6d4a
|
@ -907,7 +907,15 @@ class Issue < ActiveRecord::Base
|
|||
end
|
||||
else
|
||||
leaves.each do |leaf|
|
||||
leaf.reschedule_on!(date)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue