From: Benjamin Mack Date: Wed, 5 Oct 2011 14:14:47 +0000 (+0200) Subject: [BUGFIX] TCEforms draws huge empty icon row which on select-fields X-Git-Tag: TYPO3_4-6-0rc1~38 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/17e41abaf7c8114e17b931ff8c3109dc626c510f [BUGFIX] TCEforms draws huge empty icon row which on select-fields Certain fields of type "select" which offer records from a "foreign_table" will contain a huge amount of t3-icon-empty icons just below the select box. If you have enough of them, you even get a horizotanl scrollbar. See some screenshots here: http://forge.typo3.org/issues/13422 The issue is not a CSS issue, but a bug in the rendering of such a field. See it in action in tt_content field "sys_language". Just create enough sys_language records so that you see the row of empty icons being created. This wasn't this way before. Change-Id: I664400ee6ee1d778e227b1858f79b9ed98482d0a Resolves: #25398 Releases: 4.6, 4.5 Reviewed-on: http://review.typo3.org/5569 Reviewed-by: Stefan Galinski Tested-by: Stefan Galinski Reviewed-by: Dmitry Dulepov Tested-by: Dmitry Dulepov --- diff --git a/t3lib/class.t3lib_tceforms.php b/t3lib/class.t3lib_tceforms.php index 98ca51bad60e..6b3c5d3f8fe5 100644 --- a/t3lib/class.t3lib_tceforms.php +++ b/t3lib/class.t3lib_tceforms.php @@ -4770,7 +4770,7 @@ class t3lib_TCEforms { } elseif (t3lib_div::inList('singlebox,checkbox', $fieldValue['config']['renderMode'])) { $icon = t3lib_iconWorks::mapRecordTypeToSpriteIconName($f_table, $row); } else { - $icon = 'empty-empty'; + $icon = ''; } // Add the item: