Bug #85471 » 0002-BUGFIX-adhere-disable-restriction-for-pages-overlay.patch
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);
|
- « Previous
- 1
- 2
- Next »