Project

General

Profile

Actions

Bug #75116

closed

Preview (hidden) page translation: Page is not available in the requested language

Added by Heiko Hardt over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi, I notice that a hidden page-translation will not render a preview like the standard page.

I think this happens cause "pages_language_overlay" will not handled like "pages" within the "\TYPO3\CMS\Frontend\Page\PageRepository::enableFields()" function.

My suggestion is changing:

$show_hidden = $table === 'pages'
? $this->getTypoScriptFrontendController()->showHiddenPage
: $this->getTypoScriptFrontendController()->showHiddenRecords;

to:

$show_hidden = $table === 'pages' || $table === 'pages_language_overlay'
? $this->getTypoScriptFrontendController()->showHiddenPage
: $this->getTypoScriptFrontendController()->showHiddenRecords;

kind regards
heiko


Files

patch.diff (1.03 KB) patch.diff Heiko Hardt, 2016-03-14 21:47
Actions

Also available in: Atom PDF