Thomas Rabaix 12 years ago
parent
commit
d15d9faa40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/views/Pager/base_results.html.twig

+ 1 - 1
Resources/views/Pager/base_results.html.twig

@@ -23,7 +23,7 @@ file that was distributed with this source code.
     <label class="control-label" for="{{ admin.uniqid }}_per_page">{% trans from 'SonataAdminBundle' %}label_per_page{% endtrans %}</label>
     <label class="control-label" for="{{ admin.uniqid }}_per_page">{% trans from 'SonataAdminBundle' %}label_per_page{% endtrans %}</label>
     <select class="per-page small" id="{{ admin.uniqid }}_per_page" style="width: auto; height: auto">
     <select class="per-page small" id="{{ admin.uniqid }}_per_page" style="width: auto; height: auto">
         {% for per_page in admin.getperpageoptions %}
         {% for per_page in admin.getperpageoptions %}
-            <option {% if per_page == admin.datagrid.pager.maxperpage %}selected="selected"{% endif %} value="{{ admin.generateUrl('list', {'filter': admin.datagrid.values | merge({'_per_page': per_page})}) }}">
+            <option {% if per_page == admin.datagrid.pager.maxperpage %}selected="selected"{% endif %} value="{{ admin.generateUrl('list', {'filter': admin.datagrid.values | merge({'_page': 1, '_per_page': per_page})}) }}">
                 {{ per_page }}
                 {{ per_page }}
             </option>
             </option>
         {% endfor %}
         {% endfor %}