Navigation Menu

Skip to content

Commit

Permalink
[BUGFIX] Show hidden records that are unhidden in workspace
Browse files Browse the repository at this point in the history
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/+/64630
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Danilo Caccialanza <supercaccia@bluewin.ch>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Danilo Caccialanza <supercaccia@bluewin.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
NeoBlack authored and bmack committed Jun 3, 2020
1 parent 583fe02 commit ef695e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typo3/sysext/frontend/Classes/Page/PageRepository.php
Expand Up @@ -31,6 +31,7 @@
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\Error\Http\ShortcutTargetPageNotFoundException;
use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
use TYPO3\CMS\Core\Resource\FileRepository;
Expand Down Expand Up @@ -1942,6 +1943,7 @@ protected function movePlhOL($table, &$row)
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(
Expand Down

0 comments on commit ef695e4

Please sign in to comment.