summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-01 20:56:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-01 20:56:10 +0000
commit2a220a9e42189a5be4e2c0f790a9598ed6d62634 (patch)
tree1e65e1647cd4007a349a4e40e699c59227ec75a5 /app/models/query.rb
parentab5e07e83ef2573ae32da1a7ada5398d03777932 (diff)
downloadredmine-2a220a9e42189a5be4e2c0f790a9598ed6d62634.tar.gz
redmine-2a220a9e42189a5be4e2c0f790a9598ed6d62634.zip
Include both last and first name when sorting issues by assignee (#1841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2351 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 493144bf7..50103383b 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -98,7 +98,7 @@ class Query < ActiveRecord::Base
QueryColumn.new(:priority, :sortable => "#{Enumeration.table_name}.position", :default_order => 'desc'),
QueryColumn.new(:subject, :sortable => "#{Issue.table_name}.subject"),
QueryColumn.new(:author),
- QueryColumn.new(:assigned_to, :sortable => "#{User.table_name}.lastname"),
+ QueryColumn.new(:assigned_to, :sortable => ["#{User.table_name}.lastname", "#{User.table_name}.firstname"]),
QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on", :default_order => 'desc'),
QueryColumn.new(:category, :sortable => "#{IssueCategory.table_name}.name"),
QueryColumn.new(:fixed_version, :sortable => "#{Version.table_name}.effective_date", :default_order => 'desc'),