Project

General

Profile

Bug #85471 » 0002-BUGFIX-adhere-disable-restriction-for-pages-overlay.patch

Anonymous, 2019-04-30 11:25

View differences:

typo3/sysext/core/Classes/Database/Query/Restriction/FrontendRestrictionContainer.php
$disableRestriction = false;
if ($restriction instanceof HiddenRestriction) {
// If display of hidden records is requested, we must disable the hidden restriction.
$disableRestriction = $tableName === 'pages' ? $typoScriptFrontendController->showHiddenPage : $typoScriptFrontendController->showHiddenRecords;
$disableRestriction = $tableName === 'pages' || $tableName === 'pages_language_overlay' ? $typoScriptFrontendController->showHiddenPage : $typoScriptFrontendController->showHiddenRecords;
}
if (!$disableRestriction) {
$constraints[] = $restriction->buildExpression([$tableAlias => $tableName], $expressionBuilder);
(2-2/2)