@@ -1286,7 +1286,8 class Issue < ActiveRecord::Base | |||||
1286 | # issue was just created |
|
1286 | # issue was just created | |
1287 | self.root_id = (@parent_issue.nil? ? id : @parent_issue.root_id) |
|
1287 | self.root_id = (@parent_issue.nil? ? id : @parent_issue.root_id) | |
1288 | set_default_left_and_right |
|
1288 | set_default_left_and_right | |
1289 | Issue.update_all(["root_id = ?, lft = ?, rgt = ?", root_id, lft, rgt], ["id = ?", id]) |
|
1289 | Issue.where(["id = ?", id]). | |
|
1290 | update_all(["root_id = ?, lft = ?, rgt = ?", root_id, lft, rgt]) | |||
1290 | if @parent_issue |
|
1291 | if @parent_issue | |
1291 | move_to_child_of(@parent_issue) |
|
1292 | move_to_child_of(@parent_issue) | |
1292 | end |
|
1293 | end |
General Comments 0
You need to be logged in to leave comments.
Login now