white space changes only

pull/6827/head
Gregor Schmidt 13 years ago
parent 673f4485e6
commit d12a3bc814
  1. 7
      lib/redmine_backlogs/patches/issue_patch.rb

@ -292,9 +292,10 @@ module RedmineBacklogs::Patches::IssuePatch
begin
Issue.take_child_update_semaphore
# we overwrite the version of all leaf issues that are tasks
# this way, the fixed_version_id is propagated up
# by the inherit_version_from_story_or_root_task before_filter and the update_parent_attributes after_filter
# we overwrite the version of all leaf issues that are tasks. This way,
# the fixed_version_id is propagated up by the
# inherit_version_from_story_or_root_task before_filter and the
# update_parent_attributes after_filter
stop_descendants, descendant_tasks = self.descendants.partition{|d| d.tracker_id != Task.tracker }
descendant_tasks.reject!{ |t| stop_descendants.any? { |s| s.left < t.left && s.right > t.right } }
leaf_tasks = descendant_tasks.reject{ |t| descendant_tasks.any? { |s| s.left > t.left && s.right < t.right } }

Loading…
Cancel
Save