Fixed bug #6071: Switch to User does not work from context menu in List Module.
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 18:45:02 +0000 (18:45 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 18:45:02 +0000 (18:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2596 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/beuser/class.tx_beuser.php

index 3e67670..15f79de 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #5949: BE-Shortcut to Tools->User Admin returns error (Thanks to Oliver Hader and Christian Kuhn)
        * Fixed bug #6210: UserTSConfig value "options.moduleMenuCollapsable=0" does not work. (Thanks to Christian Kuhn)
+       * Fixed bug #6071: Switch to User does not work from context menu in List Module. (Thanks to Christian Kuhn all patches above!)
 
 2007-10-19  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index 6b22a91..3ef9a8e 100644 (file)
@@ -73,7 +73,7 @@ class tx_beuser {
                if ($BE_USER->isAdmin() && !$backRef->cmLevel && $table == 'be_users')  {       // LEVEL: Primary menu.
                        
                                // "SU" element added:
-                       $url = t3lib_extMgm::extRelPath('beuser').'mod/index.php?SwitchUser='.rawurlencode($uid).'&switchBackUser=1';
+                       $url = 'mod.php?M=tools_beuser&SwitchUser='.rawurlencode($uid).'&switchBackUser=1';
                        $localItems[] = $backRef->linkItem(
                                'Switch To User',
                                $backRef->excludeIcon('<img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su_back.gif').' border="0" align="top" title="" alt="" />'),