summaryrefslogtreecommitdiffstats
path: root/lib/redmine/pagination.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-17 20:20:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-17 20:20:56 +0000
commit1a587370040be061026d8130d9530895f120080e (patch)
tree6b97546331b0ee01f196385c50b57caf6a4761f4 /lib/redmine/pagination.rb
parent7f152d34858e22a1d6a4cc5b50c23b108caa6ffc (diff)
downloadredmine-1a587370040be061026d8130d9530895f120080e.tar.gz
redmine-1a587370040be061026d8130d9530895f120080e.zip
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
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r--lib/redmine/pagination.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index 5d2b58481..afb349f86 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -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