From 5cc09471ab54932aba1f1621d66ccf72aae3cb78 Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Sun, 23 Sep 2012 14:57:16 +0200 Subject: [PATCH] [TASK] Improve show_item for FAL files The show_item.php shows some info about the selected file. the property size is rendered twice, once in the header section with a size (eg. 223kb) and below with the size as byte. remote the last one. A call to trim() can be removed as trimExplode() is used before Change-Id: I33b0d9270bc6f81d490348c050c2b9e30c4a102c Resolves: #41291 Releases: 6.0 Reviewed-on: http://review.typo3.org/14964 Reviewed-by: Philipp Gampe Tested-by: Philipp Gampe Reviewed-by: Wouter Wolters Reviewed-by: Andreas Wolf Tested-by: Andreas Wolf --- .../ContentElement/ElementInformationController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php index 308f5ac5f337..cb644a8416fc 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -324,8 +324,12 @@ class ElementInformationController { $tableRows = array(); $showRecordFieldList = $GLOBALS['TCA'][$this->table]['interface']['showRecordFieldList']; $fieldList = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $showRecordFieldList, TRUE); + foreach ($fieldList as $name) { - $name = trim($name); + // Ignored fields + if ($name === 'size') { + continue; + } if (!isset($GLOBALS['TCA'][$this->table]['columns'][$name])) { continue; } -- GitLab