Actions
Bug #99795
closedPHP Warning: Undefined property: TYPO3\\CMS\\Beuser\\Domain\\Model\\BackendUser::$workspace in /typo3_src-11.5.22/web/typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php line 709
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2023-02-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
It seems that ExtendedTemplateService has the following a reference to $GLOBALS['BE_USER']->workspace):
$queryBuilder->getRestrictions() ->removeAll() ->add(GeneralUtility::makeInstance(DeletedRestriction::class)) ->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, $GLOBALS['BE_USER']->workspace));
This should be replaced with
$this->context->getAspect('workspace')->get('id)
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77670
Updated by Thomas Hohn almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 90b8572246cc22b42d126c079ae2618a3f63d8c2.
Actions