Skip to content
Snippets Groups Projects
Commit e093707b authored by Markus Klein's avatar Markus Klein Committed by Georg Ringer
Browse files

[BUGFIX] Do not read workspace if there is no BE user

Running the PopulatePageSlugs upgrade uses the SlugService
to generate the slugs. SlugService itself uses
BackendUtility::getRecordLocalization() which
does a DB query using a WorkspaceRestriction.
This restriction uses the workspace of the current
BE user. But within the Install Tool upgrade there is no
such user of course.

Add the necessary condition to avoid a PHP type error.

Resolves: #92464
Related: #92209
Releases: master, 10.4
Change-Id: I75b6021b4ef1543740ae83bc951b2c2c5374c8d1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65994


Tested-by: default avatarJohannes Kasberger <johannes.kasberger@reelworx.at>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarJohannes Kasberger <johannes.kasberger@reelworx.at>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarTorben Hansen <derhansen@gmail.com>
Reviewed-by: default avatarPhilipp Parzer <p.parzer@siwa.at>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 86073064
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