Commit 289993b5 authored by Georg Ringer's avatar Georg Ringer Committed by Benni Mack
Browse files

[TASK] Provide uid in ElementInformation popup

The uid of a record is an important information and should
be provided as well.

Resolves: #82526
Releases: master, 8.7
Change-Id: Ic44ca6a24e21c09ced78203ed4a73907906bf568
Reviewed-on: https://review.typo3.org/54187


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi's avatarRiccardo De Contardi <erredeco@gmail.com>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: default avatarSascha Rademacher <s.rademacher@neusta.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 997b1c10
......@@ -321,9 +321,12 @@ class ElementInformationController
protected function getPropertiesForTable() : array
{
$propertiesForTable = [];
$extraFields = [];
$lang = $this->getLanguageService();
$extraFields = [
'uid' => htmlspecialchars($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.uid'))
];
if (in_array($this->type, ['folder', 'file'], true)) {
if ($this->type === 'file') {
$extraFields['creation_date'] = htmlspecialchars($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.creationDate'));
......@@ -344,7 +347,7 @@ class ElementInformationController
foreach ($extraFields as $fieldName => $fieldLabel) {
if (isset($GLOBALS['TCA'][$this->table]['ctrl'][$fieldName])) {
$extraFields[$GLOBALS['TCA'][$this->table]['ctrl'][$fieldName]] = $fieldLabel;
} else {
} elseif ($fieldName !== 'uid') {
unset($extraFields[$fieldName]);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment