[BUGFIX] Flexform element title is cropped to hardcoded length 42/30242/3
authorSebastian Michaelsen <sebastian@michaelsen.io>
Wed, 21 May 2014 07:53:52 +0000 (09:53 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 29 May 2014 14:34:53 +0000 (16:34 +0200)
The title of a flexform element is cropped to maximum length of 30
characters. Instead it should obey the maximum title length in the user
settings.

Resolves: #58910
Releases: 6.2, 6.1
Change-Id: I28c6fc94b2d492217479bf014ff8f67463b4e98f
Reviewed-on: https://review.typo3.org/30242
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/Form/FormEngine.php

index 3072d06..435a9ef 100644 (file)
@@ -2970,7 +2970,7 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
 
                                        // If there is a title, check for LLL label
                                        if (strlen($theTitle) > 0) {
-                                               $theTitle = htmlspecialchars(GeneralUtility::fixed_lgd_cs($this->sL($theTitle), 30));
+                                               $theTitle = htmlspecialchars(GeneralUtility::fixed_lgd_cs($this->sL($theTitle), (int)$GLOBALS['BE_USER']->uc['titleLen']));
                                        }
                                        // If it's a "section" or "container":
                                        if ($value['type'] == 'array') {