Skip to content
Snippets Groups Projects
Commit 509f8280 authored by Ralf Merz's avatar Ralf Merz Committed by Andreas Fernandez
Browse files

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

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: #81881
Related: #81749
Releases: master
Change-Id: Ibc211775d657d59491beeaf8c6d4e0ff55c5e6ee
Reviewed-on: https://review.typo3.org/53520


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAchim Fritz <af@lightwerk.com>
Tested-by: default avatarAchim Fritz <af@lightwerk.com>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
parent d5066ad2
Branches
Tags
No related merge requests found
......@@ -77,7 +77,7 @@ class PageViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedVi
*/
public function render()
{
$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