From 2942784f727cb4afc6db494944d63e669b3cb9d0 Mon Sep 17 00:00:00 2001 From: Benni Mack <benni.mack@typo3.org> Date: Sun, 2 May 2010 19:32:51 +0000 Subject: [PATCH] Fixed bug #14276: tceforms: Title of a record does not use API call to limit the character git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7513 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 1 + t3lib/class.t3lib_tceforms.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 908f631ded9e..1c05d0f0d19b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2010-05-02 Benjamin Mack <benni@typo3.org> + * Fixed bug #14276: tceforms: Title of a record does not use API call to limit the character * Added feature #13379: Introduced a Sprite Icon API to render icons from sprites (Thanks to Thomas Allmer and Steffen Ritter) 2010-05-02 Steffen Kamper <info@sk-typo3.de> diff --git a/t3lib/class.t3lib_tceforms.php b/t3lib/class.t3lib_tceforms.php index 205b0b280a47..d0f81341ce04 100644 --- a/t3lib/class.t3lib_tceforms.php +++ b/t3lib/class.t3lib_tceforms.php @@ -4874,10 +4874,10 @@ class t3lib_TCEforms { #t3lib_BEfunc::fixVersioningPid($table,$rec); // Kasper: Should not be used here because NEW records are not offline workspace versions... $truePid = t3lib_BEfunc::getTSconfig_pidValue($table,$rec['uid'],$rec['pid']); $prec = t3lib_BEfunc::getRecordWSOL('pages',$truePid,'title'); - $rLabel = '<em>[PID: '.$truePid.'] '.htmlspecialchars(trim(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle('pages',$prec),40))).'</em>'; + $rLabel = '<em>[PID: '.$truePid.'] ' . t3lib_BEfunc::getRecordTitle('pages', $prec, TRUE, FALSE) . '</em>'; } else { $newLabel = ' <span class="typo3-TCEforms-recUid">['.$rec['uid'].']</span>'; - $rLabel = htmlspecialchars(trim(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($table,$rec),40))); + $rLabel = t3lib_BEfunc::getRecordTitle($table, $rec, TRUE, FALSE); } foreach ($arr as $k => $v) { -- GitLab