[TASK] Version fields in list view only if version is loaded
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / Classes / RecordList / AbstractDatabaseRecordList.php
index 14a2bd3..279faac 100644 (file)
@@ -911,7 +911,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                        if ($GLOBALS['TCA'][$table]['ctrl']['sortby']) {
                                                $fieldListArr[] = $GLOBALS['TCA'][$table]['ctrl']['sortby'];
                                        }
-                                       if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {
+                                       if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('version') && $GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {
                                                $fieldListArr[] = 't3ver_id';
                                                $fieldListArr[] = 't3ver_state';
                                                $fieldListArr[] = 't3ver_wsid';