summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-24 16:32:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-24 16:32:39 +0000
commit44fcc8919d48a93f77bb0f671816c4c70811306e (patch)
treec267b72b238222b7ae6e9ff2bb265179a4a01f6a /app/models/query.rb
parent0b31c8ac85bab5d771fab65e88e2793765785d6f (diff)
downloadredmine-44fcc8919d48a93f77bb0f671816c4c70811306e.tar.gz
redmine-44fcc8919d48a93f77bb0f671816c4c70811306e.zip
Adds Version.fields_for_order_statement.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10072 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index b2d018906..5e76b17fe 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -141,7 +141,7 @@ class Query < ActiveRecord::Base
QueryColumn.new(:assigned_to, :sortable => lambda {User.fields_for_order_statement}, :groupable => true),
QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on", :default_order => 'desc'),
QueryColumn.new(:category, :sortable => "#{IssueCategory.table_name}.name", :groupable => true),
- QueryColumn.new(:fixed_version, :sortable => ["#{Version.table_name}.effective_date", "#{Version.table_name}.name"], :default_order => 'desc', :groupable => true),
+ QueryColumn.new(:fixed_version, :sortable => lambda {Version.fields_for_order_statement}, :default_order => 'desc', :groupable => true),
QueryColumn.new(:start_date, :sortable => "#{Issue.table_name}.start_date"),
QueryColumn.new(:due_date, :sortable => "#{Issue.table_name}.due_date"),
QueryColumn.new(:estimated_hours, :sortable => "#{Issue.table_name}.estimated_hours"),