]> git.openstreetmap.org Git - rails.git/commitdiff
Preserve the page number when submitting the form
authorTom Hughes <tom@compton.nu>
Fri, 7 May 2010 13:07:39 +0000 (14:07 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 7 May 2010 13:07:39 +0000 (14:07 +0100)
app/views/user/list.html.erb

index c91ce71e691db1137355a41822c8274745d9ffa6..02378b451bfc295ec92c872df8257789d1897fa9 100644 (file)
@@ -3,7 +3,10 @@
 <h1><%= t('user.list.heading') %></h1>
 
 <% 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] %>
     <table id="user_list">
       <tr>
         <td colspan="2">