Skip to content
Snippets Groups Projects
Commit 36696a35 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Markus Klein
Browse files

[BUGFIX] Do no force int cast of pageUid in f:link.action

Since #81213, the `pageUid` argument is cast to an int. If that
parameter is omitted, pageUid becomes 0. UriBuilder is able to
determine the page uid by itself, but for this, $pageUid must be
null.

Resolves: #81749
Related: #81213
Releases: master
Change-Id: I030ef28efb1a3fdd14246f84c8ce8c464ba04a4d
Reviewed-on: https://review.typo3.org/53359


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarClaus Due <claus@phpmind.net>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 3a009454
Branches
Tags
No related merge requests found
......@@ -73,7 +73,7 @@ class ActionViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBased
$controller = $this->arguments['controller'];
$extensionName = $this->arguments['extensionName'];
$pluginName = $this->arguments['pluginName'];
$pageUid = (int)$this->arguments['pageUid'];
$pageUid = (int)$this->arguments['pageUid'] ?: null;
$pageType = (int)$this->arguments['pageType'];
$noCache = (bool)$this->arguments['noCache'];
$noCacheHash = (bool)$this->arguments['useCacheHash'];
......
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