Commit e052f903 authored by Markus Klein's avatar Markus Klein Committed by Oliver Hader
Browse files

[BUGFIX] Add missing (int) cast when creating preview uri

Resolves: #93065
Releases: master
Change-Id: Ia12c5e6fbec0441bc41508c6985b73347331157d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67102

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
parent 352a2a7f
......@@ -373,7 +373,7 @@ class NewRecordController
];
}
if (!in_array((int)$this->pageinfo['doktype'], $excludeDokTypes, true)) {
$previewDataAttributes = PreviewUriBuilder::create($this->pageinfo['uid'])
$previewDataAttributes = PreviewUriBuilder::create((int)$this->pageinfo['uid'])
->withRootLine(BackendUtility::BEgetRootLine($this->pageinfo['uid']))
->buildDispatcherDataAttributes();
$viewButton = $buttonBar->makeLinkButton()
......
......@@ -752,7 +752,7 @@ class PageLayoutController
&& !VersionState::cast($this->pageinfo['t3ver_state'])->equals(VersionState::DELETE_PLACEHOLDER)
) {
$languageParameter = $this->current_sys_language ? ('&L=' . $this->current_sys_language) : '';
$previewDataAttributes = PreviewUriBuilder::create($this->pageinfo['uid'])
$previewDataAttributes = PreviewUriBuilder::create((int)$this->pageinfo['uid'])
->withRootLine(BackendUtility::BEgetRootLine($this->pageinfo['uid']))
->withAdditionalQueryParameters($languageParameter)
->buildDispatcherDataAttributes();
......
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