diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-03 20:09:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-03 20:09:44 +0000 |
commit | b1504ceb434c0fd2543db2f27b46c25898e72f6d (patch) | |
tree | 458144eea3f95ddb835a35250cac9be0535d2d4c /app/helpers/sort_helper.rb | |
parent | bbe1ff3ec97b5e7865309a4ebe08623a7feb8b40 (diff) | |
download | redmine-b1504ceb434c0fd2543db2f27b46c25898e72f6d.tar.gz redmine-b1504ceb434c0fd2543db2f27b46c25898e72f6d.zip |
Adds previous/next links to issue (#2850).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8488 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/sort_helper.rb')
-rw-r--r-- | app/helpers/sort_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index 9f8ac6470..9fda5982b 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -160,7 +160,8 @@ module SortHelper # sort_clause. # - criteria can be either an array or a hash of allowed keys # - def sort_update(criteria) + def sort_update(criteria, sort_name=nil) + sort_name ||= self.sort_name @sort_criteria = SortCriteria.new @sort_criteria.available_criteria = criteria @sort_criteria.from_param(params[:sort] || session[sort_name]) |