@@ -61,7 +61,7 module Redmine | |||||
61 |
|
61 | |||
62 | # Returns the siblings |
|
62 | # Returns the siblings | |
63 | def siblings |
|
63 | def siblings | |
64 | nested_set_scope.where(:parent_id => parent_id).where("id <> ?", id) |
|
64 | nested_set_scope.where(:parent_id => parent_id).where("#{self.class.table_name}.id <> ?", id) | |
65 | end |
|
65 | end | |
66 |
|
66 | |||
67 | # Returns the ancestors |
|
67 | # Returns the ancestors |
General Comments 0
You need to be logged in to leave comments.
Login now