Browse Source

Merge pull request #1491 from pulzarraider/persistent_parameter_filter_fix

Add persistent parameters to filter form as hidden inputs
Thomas 11 years ago
parent
commit
f877e60b8e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Resources/views/CRUD/base_list.html.twig

+ 4 - 0
Resources/views/CRUD/base_list.html.twig

@@ -171,6 +171,10 @@ file that was distributed with this source code.
 
                     <a class="btn" href="{{ admin.generateUrl('list', {filters: 'reset'}) }}">{{ 'link_reset_filter'|trans({}, 'SonataAdminBundle') }}</a>
                 </div>
+
+                {% for paramKey, paramValue in admin.persistentParameters %}
+                    <input type="hidden" name="{{ paramKey }}" value="{{ paramValue }}" />
+                {% endfor %}
             </fieldset>
         </form>
     {% endif %}