[BUGFIX] Hide versioning icon in list when workspaces is installed
authorTolleiv Nietsch <info@tolleiv.de>
Thu, 7 Jul 2011 05:34:13 +0000 (07:34 +0200)
committerTolleiv Nietsch <info@tolleiv.de>
Fri, 8 Jul 2011 15:36:01 +0000 (17:36 +0200)
Following #25962 the versioning icon in the
list module should be hidden whenever "workspaces" is installed.

Change-Id: Iaeb41a36131568716eeb8a23f54b0b5bf1b7a1df
Resolves: #27969
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/3118
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/class.db_list_extra.inc

index 144bb92..8a30fb1 100644 (file)
@@ -1180,7 +1180,7 @@ class localRecordList extends recordList {
                                        '</a>';
 
                                        // Versioning:
-                               if (t3lib_extMgm::isLoaded('version') {
+                               if (t3lib_extMgm::isLoaded('version') && !t3lib_extMgm::isLoaded('workspaces')) {
                                        $vers = t3lib_BEfunc::selectVersionsOfRecord($table, $row['uid'], 'uid', $GLOBALS['BE_USER']->workspace, FALSE, $row);
                                        if (is_array($vers))    {       // If table can be versionized.
                                                $versionIcon = 'no-version';
@@ -1865,4 +1865,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc']);
 }
 
-?>
\ No newline at end of file
+?>