summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 09:05:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 09:05:57 +0000
commit98787ce42cd9b33c002afe6639eb1b9e0d016da7 (patch)
treefe3908b5293e23b43832195e0e9d2860b945c9d5
parent4f88881427a89a807d1473139a403c9564ae4991 (diff)
downloadredmine-98787ce42cd9b33c002afe6639eb1b9e0d016da7.tar.gz
redmine-98787ce42cd9b33c002afe6639eb1b9e0d016da7.zip
Merged r15958 (#24296).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@16006 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/nested_set/traversing.rb2
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