##// END OF EJS Templates
remove unneeded setting self[left_column_name] and self[right_column_name] from Issue#update_nested_set_attributes_on_parent_change (#6579)...
Toshi MARUYAMA -
r12991:64255dc66335
parent child
Show More
@@ -1326,8 +1326,6 class Issue < ActiveRecord::Base
1326 offset = right_most_bound + 1 - lft
1326 offset = right_most_bound + 1 - lft
1327 Issue.where(cond).
1327 Issue.where(cond).
1328 update_all(["root_id = ?, lft = lft + ?, rgt = rgt + ?", root_id, offset, offset])
1328 update_all(["root_id = ?, lft = lft + ?, rgt = rgt + ?", root_id, offset, offset])
1329 self[left_column_name] = lft + offset
1330 self[right_column_name] = rgt + offset
1331 end
1329 end
1332 if @parent_issue
1330 if @parent_issue
1333 move_to_child_of(@parent_issue)
1331 move_to_child_of(@parent_issue)
General Comments 0
You need to be logged in to leave comments. Login now