fix for the fix from bug 2868: the adminpanel didn't transfer the page id correctly...
authorRupert Germann <rupi@gmx.li>
Fri, 14 Apr 2006 11:14:19 +0000 (11:14 +0000)
committerRupert Germann <rupi@gmx.li>
Fri, 14 Apr 2006 11:14:19 +0000 (11:14 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1436 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_tsfebeuserauth.php

index dd6a537..cc96560 100755 (executable)
@@ -186,8 +186,9 @@ class t3lib_tsfeBeUserAuth extends t3lib_beUserAuth {
        ADMIN PANEL
 -->
 <a name="TSFE_ADMIN"></a>
-<form name="TSFE_ADMIN_PANEL_FORM" action="'.htmlspecialchars(t3lib_div::getIndpEnv('SCRIPT_NAME')).'#TSFE_ADMIN" method="get" style="margin:0;">
-'.$query.
+<form name="TSFE_ADMIN_PANEL_FORM" action="'.htmlspecialchars(t3lib_div::getIndpEnv('SCRIPT_NAME')).'#TSFE_ADMIN" method="get" style="margin:0;">'.
+(!t3lib_div::_GET('id')?'<input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />
+':'').$query.
 '      <table border="0" cellpadding="0" cellspacing="0" class="typo3-adminPanel" style="background-color:#f6f2e6; border: 1px solid black; z-index:0; position:absolute;">'.$header.$out.'
        </table>
 </form>';