diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 20:26:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 20:26:21 +0000 |
commit | daef6a8037ab66e1b2716ef42a197fc20228b237 (patch) | |
tree | dcb69d13424a48de49b346896f640aba1cc36152 /lib/redmine/nested_set | |
parent | 1a851318fdce55a7ffb2290de692282e294987f8 (diff) | |
download | redmine-daef6a8037ab66e1b2716ef42a197fc20228b237.tar.gz redmine-daef6a8037ab66e1b2716ef42a197fc20228b237.zip |
Insert children issues to respect same order as ids.
git-svn-id: http://svn.redmine.org/redmine/trunk@13842 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/nested_set')
-rw-r--r-- | lib/redmine/nested_set/issue_nested_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/nested_set/issue_nested_set.rb b/lib/redmine/nested_set/issue_nested_set.rb index dac340ba3..5a6af9440 100644 --- a/lib/redmine/nested_set/issue_nested_set.rb +++ b/lib/redmine/nested_set/issue_nested_set.rb @@ -36,7 +36,7 @@ module Redmine def target_lft scope_for_max_rgt = self.class.where(:root_id => root_id).where(:parent_id => parent_id) if id - #scope_for_max_rgt = scope_for_max_rgt.where("id < ?", id) + scope_for_max_rgt = scope_for_max_rgt.where("id < ?", id) end max_rgt = scope_for_max_rgt.maximum(:rgt) if max_rgt |