Skip to content
Snippets Groups Projects
Commit 509eb691 authored by Georg Ringer's avatar Georg Ringer Committed by Benni Mack
Browse files

[BUGFIX] Use proper workspace in SuggestWizard

SuggestWizard should also find records in workspace.

Resolves: #81732
Releases: main, 12.4
Change-Id: Ic552cd3329174632eb5be92ff9f7876959a454f3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84640


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 0d2d8d92
Branches
Tags
No related merge requests found
......@@ -102,9 +102,7 @@ class SuggestWizardDefaultReceiver
$this->queryBuilder->getRestrictions()
->removeAll()
->add(GeneralUtility::makeInstance(DeletedRestriction::class))
// if table is versionized, only get the records from the Live Workspace
// the overlay itself of WS-records is done below
->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, 0));
->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, $this->getBackendUser()->workspace));
$this->table = $table;
$this->config = $config;
// get a list of all the pages that should be looked on
......
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