[BUGFIX] Do not use deprecated $R_URI 06/56606/2
authorSusanne Moog <susanne.moog@typo3.org>
Sun, 8 Apr 2018 09:14:17 +0000 (11:14 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 8 Apr 2018 11:10:16 +0000 (13:10 +0200)
Resolves: #84649
Releases: master
Change-Id: I98ec184e4b2d15d04515ba121babb470ac832882
Reviewed-on: https://review.typo3.org/56606
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Tree/View/ContentCreationPagePositionMap.php

index 3bbde87..043cee2 100644 (file)
@@ -56,7 +56,7 @@ class ContentCreationPagePositionMap extends PagePositionMap
             'edit[tt_content][' . (is_array($row) ? -$row['uid'] : $pid) . ']' => 'new',
             'defVals[tt_content][colPos]' => $vv,
             'defVals[tt_content][sys_language_uid]' => $sys_lang,
-            'returnUrl' => $GLOBALS['SOBE']->R_URI
+            'returnUrl' => GeneralUtility::_GP('returnUrl')
         ]);
         return $this->clientContext . '.location.href=' . GeneralUtility::quoteJSvalue($location) . '+document.editForm.defValues.value; return false;';
     }