Permalink
Browse files

reset page count on filter

  • Loading branch information...
1 parent c5ebdca commit 54f0ec8ff854397af5f4345f9292d9a42eb901f0 @rande rande committed Feb 1, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Resources/views/CRUD/base_list.html.twig
@@ -178,6 +178,10 @@ file that was distributed with this source code.
{#</td>#}
</tr>
</table>
+
+ <input type="hidden" name="filter[_page]" id="filter__page" value="1" />
+
+ {% set foo = form.getChild('_page').setRendered() %}
{{ form_rest(form) }}
<input type="submit" class="btn primary" value="{% trans from 'SonataAdminBundle' %}btn_filter{% endtrans %}" />

0 comments on commit 54f0ec8

Please sign in to comment.