[BUGFIX] Render the creator of a record in ElementInformationController 56/48456/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 6 Jun 2016 08:05:03 +0000 (10:05 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 6 Jun 2016 11:26:56 +0000 (13:26 +0200)
The ElementInformationController must show the creator user and not
the current one.

Resolves: #76461
Releases: master, 7.6
Change-Id: Ibeae9970783aa6d0fc3b0e190956140c872a9ac9
Reviewed-on: https://review.typo3.org/48456
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.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 c7ddcca..a054a13 100644 (file)
@@ -391,8 +391,8 @@ class ElementInformationController
                                 ' . $icon . '
                             </div>
                             <div class="media-body">
-                                <strong>' . htmlspecialchars($GLOBALS['BE_USER']->user['username']) . '</strong><br>
-                                ' . ($GLOBALS['BE_USER']->user['realName'] ? htmlspecialchars($GLOBALS['BE_USER']->user['realName']) : '') . '
+                                <strong>' . htmlspecialchars($creatorRecord['username']) . '</strong><br>
+                                ' . ($creatorRecord['realName'] ? htmlspecialchars($creatorRecord['realName']) : '') . '
                             </div>
                         </div>';
                 }