[BUGFIX] Remove legacy code for version extension 50/54050/2
authorMatthias Vogel <typo3@kanti.de>
Fri, 8 Sep 2017 21:15:39 +0000 (23:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 9 Sep 2017 11:09:49 +0000 (13:09 +0200)
The "Display version" module of ext:version has been
moved to ext:compatibility7 with v8. The list module links
to this view but the link is dead if compat7 is not loaded.
The v8 version of the patch now checks for "loaded version,
loaded compat7, but not loaded workspaces" to render the link,
in master, this button is removed entirely

Resolves: #82394
Related: #79942
Releases: master, 8.7
Change-Id: I4e32a63b144b658f84362e25bda1cc312247367e
Reviewed-on: https://review.typo3.org/54044
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-on: https://review.typo3.org/54050

typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 274aa41..0c10baa 100644 (file)
@@ -1511,7 +1511,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                 . $this->iconFactory->getIcon('actions-document-history-open', Icon::SIZE_SMALL)->render() . '</a>';
             $this->addActionToCellGroup($cells, $historyAction, 'history');
             // Versioning:
-            if (ExtensionManagementUtility::isLoaded('version') && !ExtensionManagementUtility::isLoaded('workspaces')) {
+            if (ExtensionManagementUtility::isLoaded('version') && ExtensionManagementUtility::isLoaded('compatibility7') && !ExtensionManagementUtility::isLoaded('workspaces')) {
                 $vers = BackendUtility::selectVersionsOfRecord($table, $row['uid'], 'uid', $this->getBackendUserAuthentication()->workspace, false, $row);
                 // If table can be versionized.
                 if (is_array($vers)) {