diff --git a/src/Helper/Processor.php b/src/Helper/Processor.php index a31bf66..22b8310 100644 --- a/src/Helper/Processor.php +++ b/src/Helper/Processor.php @@ -193,7 +193,7 @@ public function filter(SlidingPaginationInterface $pagination, array $fields, ar return \array_merge( $pagination->getPaginatorOptions() ?? [], $pagination->getCustomParameters() ?? [], - \compact('fields', 'action', 'filterFieldName', 'filterValueName', 'selectedField', 'selectedValue', 'options') + \compact('fields', 'action', 'filterFieldName', 'filterValueName', 'selectedField', 'selectedValue', 'options', 'params') ); } } diff --git a/templates/Pagination/filtration.html.twig b/templates/Pagination/filtration.html.twig index 18757da..cc52e46 100644 --- a/templates/Pagination/filtration.html.twig +++ b/templates/Pagination/filtration.html.twig @@ -9,7 +9,11 @@ {% else %} {% endif %} - + {% if params|length > 0 %} + {% for param, value in params %} + + {% endfor %} + {% endif %}