summaryrefslogtreecommitdiffstats
path: root/lib/redmine/nested_set
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/nested_set')
-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