[BUGFIX] Workspaces view doesn't respect TCA label_userFunc
authorMichael Klapper <michael.klapper@aoemedia.de>
Mon, 30 May 2011 16:21:12 +0000 (18:21 +0200)
committerMichael Klapper <klapper@aoemedia.de>
Wed, 8 Jun 2011 08:44:04 +0000 (10:44 +0200)
Change-Id: I6ff0640eac36a74d5a49d0f0bb9f2038fba01f97
Resolves: #27036
Releases: 4.6, 4.5

typo3/sysext/workspaces/Classes/Service/GridData.php

index 0d18f81..3c63c69 100644 (file)
@@ -116,8 +116,8 @@ class tx_Workspaces_Service_GridData {
                                        $pctChange = $this->calculateChangePercentage($table, $origRecord, $versionRecord);
                                        $versionArray['uid'] = $record['uid'];
                                        $versionArray['workspace'] = $versionRecord['t3ver_id'];
-                                       $versionArray['label_Workspace'] = htmlspecialchars($versionRecord[$GLOBALS['TCA'][$table]['ctrl']['label']]);
-                                       $versionArray['label_Live'] = htmlspecialchars($origRecord[$GLOBALS['TCA'][$table]['ctrl']['label']]);
+                                       $versionArray['label_Workspace'] = htmlspecialchars(t3lib_befunc::getRecordTitle($table, $versionRecord));
+                                       $versionArray['label_Live'] = htmlspecialchars(t3lib_befunc::getRecordTitle($table, $origRecord));
                                        $versionArray['label_Stage'] = htmlspecialchars($stagesObj->getStageTitle($versionRecord['t3ver_stage']));
                                        $versionArray['change'] = $pctChange;
                                        $versionArray['path_Live'] = htmlspecialchars(t3lib_BEfunc::getRecordPath($record['livepid'], '', 999));