[BUGFIX] Web->Page now respects labels set by TSConfig for plugins 26/36226/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Fri, 23 Jan 2015 10:58:10 +0000 (11:58 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 24 Jan 2015 11:05:19 +0000 (12:05 +0100)
Overriding labels for list_type via TSConfig we not taken into account
when displaying CType list.

Using getLabelsFromItemListMerged fixes the issue.

Resolves: #54211
Releases: master, 6.2
Change-Id: I147f3cddd0cb9e156cdbb76434aa86f5276e6a5e
Reviewed-on: http://review.typo3.org/36226
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 50b9625..9dd3bd8 100644 (file)
@@ -1565,7 +1565,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                        if ((string)$hookOut !== '') {
                                                $out .= $hookOut;
                                        } elseif (!empty($row['list_type'])) {
-                                               $label = BackendUtility::getLabelFromItemlist('tt_content', 'list_type', $row['list_type']);
+                                               $label = BackendUtility::getLabelFromItemListMerged($row['pid'], 'tt_content', 'list_type', $row['list_type']);
                                                if (!empty($label)) {
                                                        $out .=  '<strong>' . $this->getLanguageService()->sL($label, TRUE) . '</strong><br />';
                                                } else {