Project

General

Profile

Actions

Bug #93771

closed

PageRepository and Workspaces

Added by Anonymous over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-03-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In file

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

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

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.


Files

Actions

Also available in: Atom PDF