Commit f3e4dc32 authored by Benni Mack's avatar Benni Mack Committed by Frank Nägler
Browse files

[BUGFIX] Show hidden records that are unhidden in workspace

When a live record that is hidden, but gets unhidden in a
workspace version, the record should also be resolved within
move placeholder resolving.

Resolves: #88054
Releases: master, 10.4, 9.5
Change-Id: Ia5396c6d0cc6b6a915ac8af21008ff5c592c1fe1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64632


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
Reviewed-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
parent b5f34156
......@@ -30,6 +30,7 @@ use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
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\Error\Http\ShortcutTargetPageNotFoundException;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -1636,6 +1637,7 @@ class PageRepository implements LoggerAwareInterface
if ($moveID) {
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table);
$queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class, $this->context));
$queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);
$origRow = $queryBuilder->select(...array_keys($this->purgeComputedProperties($row)))
->from($table)
->where(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment