Commit 06a50423 authored by Claus Due's avatar Claus Due Committed by Andreas Fernandez
Browse files

[BUGFIX] Avoid version overlay if EXT:version is not loaded

PlainDataResolver will do semi-expensive operations for
workspaces-enabled tables even if EXT:version (and
therefore EXT:workspaces) is not loaded.

Doing a cheap check can prevent calling two such
operations and saves SQL queries and memory.

Change-Id: I6062538c3c158352b7be5748d407bbe2aad3a641
Resolves: #78982
Releases: master

Tested-by: default avatarTYPO3com <>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent f37a28db
......@@ -17,6 +17,7 @@ namespace TYPO3\CMS\Core\DataHandling;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Versioning\VersionState;
......@@ -371,7 +372,10 @@ class PlainDataResolver
protected function isWorkspaceEnabled()
return BackendUtility::isTableWorkspaceEnabled($this->tableName);
if (ExtensionManagementUtility::isLoaded('version')) {
return BackendUtility::isTableWorkspaceEnabled($this->tableName);
return false;
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