Skip to content

Commit

Permalink
Fix input hidden parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kip-mmainchain committed Feb 8, 2022
1 parent d6ddf43 commit 42b7615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/views/default/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
<div class="col-11">
{% form_theme list_form_filters '@EasyAdmin/form/bootstrap_4.html.twig' %}
{{ block('request_parameters_as_hidden') }}
<input type="hidden" name="entity" value="{{ _request_parameters.entity }}">
<input type="hidden" name="sortField" value="{{ _entity_config.search.sort.field|default(_request_parameters.sortField) }}">
<input type="hidden" name="sortDirection" value="{{ _entity_config.search.sort.direction|default(_request_parameters.sortDirection) }}">
<input type="hidden" name="{{ easyadmin_object_type(app.request) }}" value="{{ attribute(_request_parameters, easyadmin_object_type(app.request)) }}">
<input type="hidden" name="sortField" value="{{ _object_config.search.sort.field|default(_request_parameters.sortField) }}">
<input type="hidden" name="sortDirection" value="{{ _object_config.search.sort.direction|default(_request_parameters.sortDirection) }}">
<input type="hidden" name="menuIndex" value="{{ _request_parameters.menuIndex }}">
<input type="hidden" name="submenuIndex" value="{{ _request_parameters.submenuIndex }}">
<div class="row">
Expand Down

0 comments on commit 42b7615

Please sign in to comment.