From 64255dc663357ff178e2e32c0fb144332f07dc9e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 23 Aug 2014 05:45:49 +0000 Subject: [PATCH] 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 --- app/models/issue.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index a98305fef..d3b2311c8 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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) -- 2.39.5