[BUGFIX] Skip extra rendering of fields in ElementInformation 01/56801/2
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 09:05:17 +0000 (11:05 +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/56801
Tested-by: TYPO3com <no-reply@typo3.com>
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 910b947..c3bf890 100644 (file)
@@ -367,7 +367,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]);