[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)
committerGeorg Ringer <mail@ringerge.org>
Sun, 18 Dec 2011 07:02:32 +0000 (08:02 +0100)
Following #25962 the versioning icon in the
list module should be hidden whenever "workspaces" is installed.

Change-Id: I61149e288ad456670c3cdd2137b73e9380c5a910
Resolves: #27969
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/6966
Reviewed-by: Oliver Hader
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/class.db_list_extra.inc

index 07a836e..83de4c7 100644 (file)
@@ -1198,7 +1198,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';