@@ -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