Skip to content

Commit

Permalink
fix: invalid filtration form behavior when search filters are the onl…
Browse files Browse the repository at this point in the history
…y filters defined
  • Loading branch information
Kreyu committed May 29, 2023
1 parent 2fbf4fe commit e0b7622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/themes/bootstrap_5.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endblock %}

{% block action_bar %}
{% set display_filter_action = filtration_enabled and filters|length > 0 %}
{% set display_filter_action = filtration_enabled and filters|length > 0 and filtration_form.children|length > 0 %}
{% set display_export_action = exporting_enabled and exporters|length > 0 %}

{% if title or has_active_filters or display_filter_action or display_export_action or personalization_enabled %}
Expand Down Expand Up @@ -72,7 +72,7 @@
</div>
</div>

{% if filtration_enabled and filtration_form and filtration_form|length > 0 %}
{% if filtration_enabled and filtration_form and filters|length > 0 %}
{{ data_table_filters_form(filtration_form) }}
{% endif %}

Expand Down

0 comments on commit e0b7622

Please sign in to comment.