Skip to content

Commit

Permalink
[BUGFIX] Add empty array defaults in SearchFormViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
hnadler committed May 16, 2024
1 parent 5cfa6d2 commit b55d50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/SearchFormViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ protected function getExistingSearchParameters(): array
if ($this->getTypoScriptConfiguration()->getSearchKeepExistingParametersForNewSearches()) {
$request = $this->renderingContext->getRequest();
$pluginNamespace = $this->getTypoScriptConfiguration()->getSearchPluginNamespace();
$arguments = $request->getQueryParams()[$pluginNamespace];
ArrayUtility::mergeRecursiveWithOverrule($arguments, $request->getParsedBody()[$pluginNamespace]);
$arguments = $request->getQueryParams()[$pluginNamespace] ?? [];
ArrayUtility::mergeRecursiveWithOverrule($arguments, $request->getParsedBody()[$pluginNamespace] ?? []);

unset($arguments['q'], $arguments['id'], $arguments['L']);
$searchParameters = $this->translateSearchParametersToInputTagAttributes($arguments);
Expand Down

0 comments on commit b55d50d

Please sign in to comment.