diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 09:05:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 09:05:30 +0000 |
commit | 9b235e7d7beddcae41fb81da87e03ea56addd7ef (patch) | |
tree | bcbe64b9deed3a8522c96fe91d264eb1cdca680f /lib/redmine | |
parent | 308133be453295afe3821bed85c71e083e5ed9c4 (diff) | |
download | redmine-9b235e7d7beddcae41fb81da87e03ea56addd7ef.tar.gz redmine-9b235e7d7beddcae41fb81da87e03ea56addd7ef.zip |
Merged r15958 (#24296).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16005 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/nested_set/traversing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/nested_set/traversing.rb b/lib/redmine/nested_set/traversing.rb index 5b3c1cb14..67b13d779 100644 --- a/lib/redmine/nested_set/traversing.rb +++ b/lib/redmine/nested_set/traversing.rb @@ -61,7 +61,7 @@ module Redmine # Returns the siblings def siblings - nested_set_scope.where(:parent_id => parent_id).where("id <> ?", id) + nested_set_scope.where(:parent_id => parent_id).where("#{self.class.table_name}.id <> ?", id) end # Returns the ancestors |