From 8b08c1a534ab3271579d4ef9c27cfd8ec4d0fd7c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 3 Jan 2013 11:37:07 +0000 Subject: [PATCH] Prevents position to be specified more than once in the order by list which is not supported by SQLServer (#12713). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11100 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/enumeration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 1c4a7a414..fde7ea79b 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -24,7 +24,7 @@ class Enumeration < ActiveRecord::Base acts_as_list :scope => 'type = \'#{type}\'' acts_as_customizable - acts_as_tree :order => 'position ASC' + acts_as_tree :order => "#{Enumeration.table_name}.position ASC" before_destroy :check_integrity before_save :check_default -- 2.39.5