From: Jean-Philippe Lang Date: Sat, 26 Nov 2016 09:05:30 +0000 (+0000) Subject: Merged r15958 (#24296). X-Git-Tag: 3.3.2~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b235e7d7beddcae41fb81da87e03ea56addd7ef;p=redmine.git Merged r15958 (#24296). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16005 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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