Reset the page parameter when changing the number of items per page.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11033 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-17 20:20:56 +00:00
parent 7f152d3485
commit 1a58737004
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ module Redmine
values = per_page_options(paginator.per_page, paginator.item_count)
if values.any?
links = values.collect do |n|
n == paginator.per_page ? n : yield(n, :per_page => n)
n == paginator.per_page ? n : yield(n, :per_page => n, paginator.page_param => nil)
end
l(:label_display_per_page, links.join(', '))
end