mirror of
https://github.com/redmine/redmine.git
synced 2025-11-17 18:50:53 +01:00
Fixed: ambiguous lft column SQL error on Issue#descendants with a join on projects.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5441 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -425,7 +425,7 @@ module CollectiveIdea #:nodoc:
|
||||
# the base ActiveRecord class, using the :scope declared in the acts_as_nested_set
|
||||
# declaration.
|
||||
def nested_set_scope
|
||||
options = {:order => quoted_left_column_name}
|
||||
options = {:order => "#{self.class.table_name}.#{quoted_left_column_name}"}
|
||||
scopes = Array(acts_as_nested_set_options[:scope])
|
||||
options[:conditions] = scopes.inject({}) do |conditions,attr|
|
||||
conditions.merge attr => self[attr]
|
||||
|
||||
Reference in New Issue
Block a user