Commit 44d039d4 authored by Paul Ilea's avatar Paul Ilea

[BUGFIX] Fix BE Module pagination for typo3 v9

parent 8e720bfb
......@@ -47,14 +47,21 @@ class UriViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper {
$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'])
->setAddQueryString(TRUE)
->setUseCacheHash($arguments['useCacheHash'])
->setAddQueryString(true)
->setAddQueryStringMethod($arguments['addQueryStringMethod'])
->setArgumentsToBeExcludedFromQueryString([$argumentPrefix, 'cHash'])
->setFormat($arguments['format'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment