[BUGFIX] Enable preview of hidden page translations 31/60331/4
authorDaniel Goerz <daniel.goerz@posteo.de>
Mon, 25 Mar 2019 14:23:42 +0000 (15:23 +0100)
committerDaniel Goerz <daniel.goerz@posteo.de>
Wed, 3 Apr 2019 11:20:24 +0000 (13:20 +0200)
commitdaf592dac63c318f59351eb4aef2393ea619a4d6
tree281c973634b2069e738c2bcf87e34ae8d011cf84
parent072e6f62bad05363f171c0b14162715e53cd6dd7
[BUGFIX] Enable preview of hidden page translations

TSFE->determineIdIsHiddenPage() now takes the current site language into
account when fetching the page record. When rendering a page translation
the mehtod does no longer reflect the hidden status of the default
language but the status of the translated page instead.

This enables previewing a hidden page translation even if the language
parent is active.

Resolves: #85471
Releases: master, 9.5
Change-Id: I1b0ead8eaf4c707583e24babbbca49870a31cdaa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60331
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <look@susi.dev>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php