[BUGFIX] Avoid exception for int label column 80/57780/2
authorStephan Großberndt <stephan.grossberndt@typo3.org>
Thu, 2 Aug 2018 11:51:39 +0000 (13:51 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 2 Aug 2018 17:29:00 +0000 (19:29 +0200)
By casting the title column to string for the label of an TCA record an
exception caused by a strict type check is avoided when shortening the
title.

Resolves: #85729
Related: #79440
Releases: master, 8.7
Change-Id: Ie365b92ae73cd766c412d66ff7624eebbbfb3cf7
Reviewed-on: https://review.typo3.org/57780
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stephan Großberndt <stephan.grossberndt@typo3.org>
Tested-by: Stephan Großberndt <stephan.grossberndt@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/FieldWizard/RecordsOverview.php

index 3e44b9c..c95a8b1 100644 (file)
@@ -53,7 +53,7 @@ class RecordsOverview extends AbstractNode
         $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         $recordsOverviewHtml = [];
         foreach ($selectedItems as $selectedItem) {
-            $title = $selectedItem['title'];
+            $title = (string)$selectedItem['title'];
             if (empty($title)) {
                 $title = '[' . $languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.no_title') . ']';
             }