[BUGFIX] ElementBrowser: After file upload no file can be selected 03/36903/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 14 Feb 2015 13:19:06 +0000 (14:19 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 14 Feb 2015 13:49:27 +0000 (14:49 +0100)
Resolves: #65027
Releases: master, 6.2
Change-Id: I6df1361be3572497fadcea321b6d8d7f000062e0
Reviewed-on: http://review.typo3.org/36903
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index 201f346..bda2a8a 100644 (file)
@@ -2512,7 +2512,8 @@ class ElementBrowser {
                // Make footer of upload form, including the submit button:
                $redirectValue = $this->getThisScript() . 'act=' . $this->act . '&mode=' . $this->mode
                        . '&expandFolder=' . rawurlencode($folderObject->getCombinedIdentifier())
-                       . '&bparams=' . rawurlencode($this->bparams);
+                       . '&bparams=' . rawurlencode($this->bparams)
+                       . (is_array($this->P) ? GeneralUtility::implodeArrayForUrl('P', $this->P) : '');
                $code .= '<input type="hidden" name="redirect" value="' . htmlspecialchars($redirectValue) . '" />';
                $code .= FormEngine::getHiddenTokenField('tceAction');
                $code .= '