Merged r15958 (#24296).

git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16005 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-11-26 09:05:30 +00:00
parent 308133be45
commit 9b235e7d7b

View File

@@ -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