Skip to content

Commit 7945224

Browse files
committed
Customized create filter url parameters
1 parent 5e4374d commit 7945224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/views/macros.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@
774774
</li>
775775
{%- endmacro -%}
776776
777-
{% macro filterDrawer(section, title, filterForm, allowSaving = true) %}
777+
{% macro filterDrawer(section, title, filterForm, allowSaving = true, createUrlParams = {}) %}
778778
<div class="filter-options drawer-frame drawer-frame-list collapse">
779779
<div class="filter-options-header">
780780
<div class="filter-options-close-button" data-toggle="collapse" data-target=".drawer-frame">
@@ -799,7 +799,7 @@
799799
{% set section = section|split('|')[0] %}
800800
801801
<div class="filter-options-footer">
802-
<button type="button" class="btn btn-primary js-filter-save-button js-entity-modal" data-section="{{ section }}" {% if report %}data-report="{{ report }}"{% endif %} data-endpoint="{{ path('admin_api_filter_create') }}">Save Filter Set</button>
802+
<button type="button" class="btn btn-primary js-filter-save-button js-entity-modal" data-section="{{ section }}" {% if report %}data-report="{{ report }}"{% endif %} data-endpoint="{{ path('admin_api_filter_create', createUrlParams) }}">Save Filter Set</button>
803803
<button type="button" class="btn btn-primary js-filter-update-button" data-endpoint="{{ path('admin_api_filter_update_fields', {id: '__ID__'}) }}">Update Filter</button>
804804
</div>
805805
{% endif %}

0 commit comments

Comments
 (0)