mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-22 16:31:12 +00:00
Fixed "column specified more than once" error with SQLServer (#6579).
git-svn-id: http://svn.redmine.org/redmine/trunk@13153 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1a74bf6485
commit
96baa905bf
@ -176,7 +176,7 @@ class ProjectNestedSetTest < ActiveSupport::TestCase
|
|||||||
projects.each do |project|
|
projects.each do |project|
|
||||||
if project.children.any?
|
if project.children.any?
|
||||||
# sibling projects sorted alphabetically
|
# sibling projects sorted alphabetically
|
||||||
assert_equal project.children.map(&:name).sort, project.children.order('lft').map(&:name), "Project #{project.name}'s children were not properly sorted"
|
assert_equal project.children.map(&:name).sort, project.children.sort_by(&:lft).map(&:name), "Project #{project.name}'s children were not properly sorted"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user