diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-01 20:56:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-01 20:56:10 +0000 |
commit | 2a220a9e42189a5be4e2c0f790a9598ed6d62634 (patch) | |
tree | 1e65e1647cd4007a349a4e40e699c59227ec75a5 /app/helpers | |
parent | ab5e07e83ef2573ae32da1a7ada5398d03777932 (diff) | |
download | redmine-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/helpers')
-rw-r--r-- | app/helpers/sort_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index b0c72504b..f5e9bb494 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -84,7 +84,7 @@ module SortHelper session[@sort_name] = sort sort_column = (sort_keys.is_a?(Hash) ? sort_keys[sort[:key]] : sort[:key]) - @sort_clause = (sort_column.blank? ? nil : "#{sort_column} #{sort[:order]}") + @sort_clause = (sort_column.blank? ? nil : [sort_column].flatten.collect {|s| "#{s} #{sort[:order]}"}.join(',')) end # Returns an SQL sort clause corresponding to the current sort state. |