[BUGFIX] Render the creator of a record in ElementInformationController 58/48458/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:27:14 +0000 (13:27 +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/48458
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 7971571..e3e5fbd 100644 (file)
@@ -403,8 +403,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>';
                 }