]> source.dussan.org Git - redmine.git/commitdiff
Merged r15958 (#24296).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Nov 2016 09:05:30 +0000 (09:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Nov 2016 09:05:30 +0000 (09:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16005 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/nested_set/traversing.rb

index 5b3c1cb140f67cce10ff0a8147c01315d267bdde..67b13d779c655b16d04638f3167258664f9570d7 100644 (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