Bug #93336 ยป 93336-ws-preview-translated.patch
typo3/sysext/core/Classes/Domain/Repository/PageRepository.php | ||
---|---|---|
use TYPO3\CMS\Core\Database\ConnectionPool;
|
||
use TYPO3\CMS\Core\Database\Query\QueryHelper;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\EndTimeRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\FrontendGroupRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\FrontendRestrictionContainer;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\FrontendWorkspaceRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\StartTimeRestriction;
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction;
|
||
use TYPO3\CMS\Core\Error\Http\ShortcutTargetPageNotFoundException;
|
||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||
... | ... | |
$queryBuilder->setRestrictions(
|
||
GeneralUtility::makeInstance(FrontendRestrictionContainer::class, $this->context)
|
||
);
|
||
if ($this->versioningWorkspaceId) {
|
||
// if versioning is requested, remove the enable field checks, it will be done in versionOL()
|
||
$queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);
|
||
$queryBuilder->getRestrictions()->removeByType(StartTimeRestriction::class);
|
||
$queryBuilder->getRestrictions()->removeByType(EndTimeRestriction::class);
|
||
}
|
||
$olrow = $queryBuilder->select('*')
|
||
->from($table)
|
||
->where(
|