[BUGFIX] Skip extra rendering of fields in ElementInformation 75/56675/3
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Apr 2018 08:09:55 +0000 (10:09 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 25 Apr 2018 08:44:17 +0000 (10:44 +0200)
tstamp & crdate fields must be added in the TCA columns
section to have those available in extbase models. Skip
those 2 fields in the ElementInformationController rendering to
still show the date instead of the timestamp.

Resolves: #84737
Releases: master, 8.7
Change-Id: Idadff6eb5ada56b24c872468fa2c18c35d168a6a
Reviewed-on: https://review.typo3.org/56675
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Kay Strobach <typo3@kay-strobach.de>
Tested-by: Kay Strobach <typo3@kay-strobach.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php

index b653726..7c3537a 100644 (file)
@@ -410,7 +410,7 @@ class ElementInformationController
                 } elseif ($name === 'height') {
                     $rowValue = $this->fileObject->getProperty('height') . 'px';
                 }
-            } elseif ($name === 'creation_date' || $name === 'modification_date') {
+            } elseif ($name === 'creation_date' || $name === 'modification_date' || $name === 'tstamp' || $name === 'crdate') {
                 $rowValue = BackendUtility::datetime($this->row[$name]);
             } else {
                 $rowValue = BackendUtility::getProcessedValueExtra($this->table, $name, $this->row[$name]);