Commit 595d94d9 authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Avoid additional SQL query in slug lookup for pages

PageRepository->fixVersioningPid() needs "t3ver_wsid" and "t3ver_oid"
to resolve a version, otherwise previewing in workspace context takes
another SQL query per page slug candidate.

Resolves: #91556
Releases: master, 10.4, 9.5
Change-Id: Ie95365fe76cd2e6e502324c5dbe145651795cff1

Tested-by: default avatarTYPO3com <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent 20042027
......@@ -202,7 +202,7 @@ class PageSlugCandidateProvider
->add(GeneralUtility::makeInstance(FrontendWorkspaceRestriction::class, null, null, $searchLiveRecordsOnly));
$statement = $queryBuilder
->select('uid', 'l10n_parent', 'pid', 'slug', 'mount_pid', 'mount_pid_ol', 't3ver_state', 'doktype')
->select('uid', 'l10n_parent', 'pid', 'slug', 'mount_pid', 'mount_pid_ol', 't3ver_state', 'doktype', 't3ver_wsid', 't3ver_oid')
Supports Markdown
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