[BUGFIX] Flexform element title is cropped to hardcoded length
[Packages/TYPO3.CMS.git] / 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') {