Skip to content
Snippets Groups Projects
Commit d65c1ad9 authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[BUGFIX] 1363 Fix pagination

parent 4aafa781
No related branches found
No related tags found
1 merge request!15Bugfix 1363 fix sg mail selection bugs
......@@ -116,10 +116,16 @@ class UriViewHelper extends AbstractViewHelper {
$argumentPrefix = $controllerContext->getRequest()->getArgumentPrefix();
$parentNamespace = $controllerContext->getRequest()->getWidgetContext()->getParentPluginNamespace();
$parentArguments = GeneralUtility::_GP($parentNamespace);
$allArguments = [$argumentPrefix => $arguments];
$allArguments = [$argumentPrefix => $arguments['arguments'] ?? []];
if ($parentArguments && isset($parentArguments['filters'])) {
$allArguments[$parentNamespace . '[filters]'] = $parentArguments['filters'];
}
if ($arguments['action'] ?? FALSE) {
$allArguments[$argumentPrefix]['action'] = $arguments['action'];
}
if (($arguments['format'] ?? '') !== '') {
$allArguments[$argumentPrefix]['format'] = $arguments['format'];
}
return $uriBuilder->reset()
->setArguments($allArguments)
->setSection($arguments['section'])
......
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