diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-23 05:45:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-23 05:45:49 +0000 |
commit | 64255dc663357ff178e2e32c0fb144332f07dc9e (patch) | |
tree | d14c3bd63753d59ddd058f4f8811012c3d6dff5c /app | |
parent | 30c4655cc3bc2415a05460a39fb314810fabe457 (diff) | |
download | redmine-64255dc663357ff178e2e32c0fb144332f07dc9e.tar.gz redmine-64255dc663357ff178e2e32c0fb144332f07dc9e.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 0 insertions, 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) |