mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-01 13:19:39 +00:00
remove unneeded setting self[left_column_name] and self[right_column_name] from Issue#update_nested_set_attributes_on_parent_change (#6579)
git-svn-id: http://svn.redmine.org/redmine/trunk@13345 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
30c4655cc3
commit
64255dc663
@ -1326,8 +1326,6 @@ class Issue < ActiveRecord::Base
|
||||
offset = right_most_bound + 1 - lft
|
||||
Issue.where(cond).
|
||||
update_all(["root_id = ?, lft = lft + ?, rgt = rgt + ?", root_id, offset, offset])
|
||||
self[left_column_name] = lft + offset
|
||||
self[right_column_name] = rgt + offset
|
||||
end
|
||||
if @parent_issue
|
||||
move_to_child_of(@parent_issue)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user