diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-03 11:37:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-03 11:37:07 +0000 |
commit | 8b08c1a534ab3271579d4ef9c27cfd8ec4d0fd7c (patch) | |
tree | cf965577f175e70483b0367a1b9af0d823ae0050 /app | |
parent | dd7d54b3a1d774d720fe17bb6aad6081002759d7 (diff) | |
download | redmine-8b08c1a534ab3271579d4ef9c27cfd8ec4d0fd7c.tar.gz redmine-8b08c1a534ab3271579d4ef9c27cfd8ec4d0fd7c.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/enumeration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |