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:
parent
7f152d3485
commit
1a58737004
|
@ -211,7 +211,7 @@ module Redmine
|
||||||
values = per_page_options(paginator.per_page, paginator.item_count)
|
values = per_page_options(paginator.per_page, paginator.item_count)
|
||||||
if values.any?
|
if values.any?
|
||||||
links = values.collect do |n|
|
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
|
end
|
||||||
l(:label_display_per_page, links.join(', '))
|
l(:label_display_per_page, links.join(', '))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue