white space changes only

pull/6827/head
Gregor Schmidt 13 years ago
parent 673f4485e6
commit d12a3bc814
  1. 11
      lib/redmine_backlogs/patches/issue_patch.rb
  2. 2
      spec/models/issue_hierarchy_restriction_project_boundaries_spec.rb

@ -292,12 +292,13 @@ 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 } }
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 } }
leaf_tasks.each do |task|
task.inherit_version_from(self)

@ -9,7 +9,7 @@ def project_boundaries_spanning_issue_hierarchy_allowed?
@parent_issue = parent_issue
end
issue.valid?
#using not so good check on validity
# using not so good check on validity
issue.errors[:parent_issue_id] != "doesn't belong to the same project"
end

Loading…
Cancel
Save