mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
fix awesome_nested_set test failure (#6579)
git-svn-id: http://svn.redmine.org/redmine/trunk@13014 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -542,7 +542,7 @@ module CollectiveIdea #:nodoc:
|
||||
right_most_node =
|
||||
self.class.base_class.unscoped.
|
||||
order("#{quoted_right_column_full_name} desc").limit(1).lock(true).first
|
||||
right_most_node ? right_most_node[right_column_name] : 0
|
||||
right_most_node ? (right_most_node[right_column_name] || 0) : 0
|
||||
end
|
||||
|
||||
# on creation, set automatically lft and rgt to the end of the tree
|
||||
|
||||
Reference in New Issue
Block a user