Quick fix for:

* 9750 sort field is lost, when displaying next part of issues list
* 9782 show issues in page is wrong

Still some problems, eg. status criteria is lost when paginating or sorting on users/list

git-svn-id: http://redmine.rubyforge.org/svn/trunk@406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-04-03 17:46:05 +00:00
parent 568c22016a
commit 6d2ecefca0
2 changed files with 11 additions and 9 deletions
+5 -3
View File
@@ -107,10 +107,12 @@ module SortHelper
order = 'desc' # changed for desc order by default
end
caption = titleize(Inflector::humanize(column)) unless caption
#params = {:params => {:sort_key => column, :sort_order => order}}
url = {:sort_key => column, :sort_order => order, :issue_id => params[:issue_id], :project_id => params[:project_id]}
link_to_remote(caption,
{:update => "content", :url => params.update( :sort_key => column, :sort_order => order)},
{:href => url_for(:params => params.update(:sort_key => column, :sort_order => order))}) +
{:update => "content", :url => url},
{:href => url_for(url)}) +
(icon ? nbsp(2) + image_tag(icon) : '')
end