summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-29 22:30:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-29 22:30:25 +0000
commit3ea84bd7e44fe352b4a8bc3385f359c112405f56 (patch)
tree63562f6dbd5eedd032ca8fc90ba83d0eab992130 /app/models/project.rb
parent522bebe5edbe302ab3e51a64e163877c3ca5eab6 (diff)
downloadredmine-3ea84bd7e44fe352b4a8bc3385f359c112405f56.tar.gz
redmine-3ea84bd7e44fe352b4a8bc3385f359c112405f56.zip
Fixed SQL errors with SQLServer (column specified more than once in the order by list) after r13526.
git-svn-id: http://svn.redmine.org/redmine/trunk@13527 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 19108b2a3..f29f50f21 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -37,7 +37,7 @@ class Project < ActiveRecord::Base
where("#{Principal.table_name}.status=#{Principal::STATUS_ACTIVE}")},
:class_name => 'Member'
has_many :enabled_modules, :dependent => :delete_all
- has_and_belongs_to_many :trackers, lambda {order("#{Tracker.table_name}.position")}
+ has_and_belongs_to_many :trackers, lambda {order(:position)}
has_many :issues, :dependent => :destroy
has_many :issue_changes, :through => :issues, :source => :journals
has_many :versions, lambda {order("#{Version.table_name}.effective_date DESC, #{Version.table_name}.name DESC")}, :dependent => :destroy