Commit 842ae3b6 authored by jplang's avatar jplang
Browse files

Add tablename to siblings query (#24296).

Patch by Danil Tashkinov.

git-svn-id: https://svn.redmine.org/redmine/trunk@15958 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 89f54049
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment