Issue Bug Closed

#93771PageRepository and Workspaces

Anonymous 03/18/21, 08:56 updated 08/02/21, 07:10

Description

In file

typo3/sysext/frontend/Classes/Page/PageRepository.php

in function getWorkspaceVersionOfRecord is it possible to do a query with empty fields list:

clipboard-202103180955-kf2ai.png

This happens in case of workspaces and fe group restricted pages in function versionOL:

                    // No version found, then check if t3ver_state = VersionState::NEW_PLACEHOLDER
                    // (online version is dummy-representation)
                    // Notice, that unless $bypassEnableFieldsCheck is TRUE, the $row is unset if
                    // enablefields for BOTH the version AND the online record deselects it. See
                    // note for $bypassEnableFieldsCheck
                    /** @var \TYPO3\CMS\Core\Versioning\VersionState $versionState */
                    $versionState = VersionState::cast($row['t3ver_state']);
                    if ($wsAlt <= -1 || $versionState->indicatesPlaceholder()) {
                        // Unset record if it turned out to be "hidden"
                        $row = false;
                    }

while building the menue.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.