From: Tom Hughes Date: Fri, 7 May 2010 13:07:39 +0000 (+0100) Subject: Preserve the page number when submitting the form X-Git-Tag: live~6876^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c86e52dee95af2100bda6a0eca7572009ab3788a?ds=sidebyside;hp=-c Preserve the page number when submitting the form --- c86e52dee95af2100bda6a0eca7572009ab3788a diff --git a/app/views/user/list.html.erb b/app/views/user/list.html.erb index c91ce71e6..02378b451 100644 --- a/app/views/user/list.html.erb +++ b/app/views/user/list.html.erb @@ -3,7 +3,10 @@

<%= t('user.list.heading') %>

<% unless @users.empty? %> - <% form_tag :status => params[:status], :ip => params[:ip] do %> + <% form_tag do %> + <%= hidden_field_tag :status, params[:status] if params[:status] %> + <%= hidden_field_tag :ip, params[:ip] if params[:ip] %> + <%= hidden_field_tag :page, params[:page] if params[:page] %>