[FOLLOWUP][BUGFIX] Switch-User feature uses wrong user id for logging 20/46920/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 26 Feb 2016 16:20:47 +0000 (17:20 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 26 Feb 2016 16:31:47 +0000 (17:31 +0100)
For master, the username partial is inlined to the main template to
suppress a whitespace issue with fluid.
For 7.6, the inlining went wrong and a variable change is applied.

Change-Id: Ibe3626b581d0203307be1347e6708bc15cb3db9d
Resolves: 71580
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/46920
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/belog/Resources/Private/Partials/Content/LogEntries.html

index cfd33ba..94a608f 100755 (executable)
                                                                        <f:else>[{logItem.backendUserUid}]</f:else>
                                                                </f:if>
                                                                <f:if condition="{logItem.logData.originalUser}">
-                                                                       ({f:translate(key:'viaUser')} <f:if condition="{belog:username(uid:logItem.backendUserUid)}"><f:then><belog:username uid="{logItem.backendUserUid}" /></f:then><f:else>[{logItem.backendUserUid}]</f:else></f:if>)
+                                                                       ({f:translate(key:'viaUser')}
+                                                                       <f:if condition="{belog:username(uid:logItem.logData.originalUser)}">
+                                                                               <f:then><belog:username uid="{logItem.logData.originalUser}" /></f:then>
+                                                                               <f:else>[{logItem.logData.originalUser}]</f:else>
+                                                                       </f:if>)
                                                                </f:if>
                                                                <br>
                                                                <span class="text-muted">