Skip to content

Commit

Permalink
bug #4639 Fix bug in default value (loevgaard)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Fix bug in default value

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

e1dd9d1 Fix bug in default value
  • Loading branch information
javiereguiluz committed Sep 7, 2021
2 parents 506630e + e1dd9d1 commit 680c41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AbstractCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function renderFilters(AdminContext $context): KeyValueStore
/** @var FiltersFormType $filtersForm */
$filtersForm = $this->get(FormFactory::class)->createFiltersForm($filters, $context->getRequest());
$formActionParts = parse_url($filtersForm->getConfig()->getAction());
$queryString = $formActionParts[EA::QUERY] ?? [];
$queryString = $formActionParts[EA::QUERY] ?? '';
parse_str($queryString, $queryStringAsArray);
unset($queryStringAsArray[EA::FILTERS], $queryStringAsArray[EA::PAGE]);

Expand Down

0 comments on commit 680c41a

Please sign in to comment.