Skip to content
Snippets Groups Projects
Commit 3d819158 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix the module select field when filtered

parent cd465127
No related branches found
No related tags found
1 merge request!13Feature upgrade to9 lts
......@@ -74,11 +74,13 @@ class ActionMenuItemViewHelper extends AbstractTagBasedViewHelper {
$uri = $uriBuilder->reset()->uriFor($action, $arguments, $controller);
$this->tag->addAttribute('value', $uri);
$currentRequest = $this->renderingContext->getControllerContext()->getRequest();
$requestArguments = $currentRequest->getArguments();
unset($requestArguments['filters']);
$requestArguments = ArrayUtility::flatten(
array_merge([
'controller' => $currentRequest->getControllerName(),
'action' => $currentRequest->getControllerActionName()
], $currentRequest->getArguments())
], $requestArguments)
);
$viewHelperArguments = ArrayUtility::flatten(
array_merge(['controller' => $controller, 'action' => $action], $arguments)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment