mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-15 03:42:53 +00:00
Add tablename to siblings query (#24296).
Patch by Danil Tashkinov. git-svn-id: http://svn.redmine.org/redmine/trunk@15958 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fcbd06e090
commit
25a3766365
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user