#93027Workspace preview of hidden extbase records not possible
Description
Previewing hidden Extbase records works.
Previewing versioned Extbase records works.
Previewing hidden AND versioned Extbase records does not work for us.
The reason is in \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend the record is overlaid with $pageRepository->versionOL().
@Typo3DbBackend@ does not set the optional $bypassEnableFieldsCheck parameter of versionOL() (default is false).
Instead it should respect whatever is set in $querySettings->getIgnoreEnableFields()
How to reproduce:
- Have a TYPO3 installation with EXT:news which has a basic setup (like detail page with a plugin)
- Set
previewHiddenRecordsto true (either via TypoScriptplugin.tx_news.settings.previewHiddenRecords = 1or via Plugin Flexform) - Have a hidden news record.
- “View” it from its backend form. => Preview will work because we enabled
previewHiddenRecords - Switch to a workspace
- “View” it from its backend form.
Expected result: News preview should open
Actual result: “The news record is not available anymore”