[BUGFIX] Keep parameters in link browser’s upload form 95/56595/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 6 Apr 2018 16:18:32 +0000 (18:18 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 6 Apr 2018 18:38:18 +0000 (20:38 +0200)
Any given attribute stored in the `P` parameter is kept and attached to
the return URL of the upload form.

Resolves: #83923
Releases: master, 8.7, 7.6
Change-Id: Id6ff93f0a30691f7bde84275128a34eb479499de
Reviewed-on: https://review.typo3.org/56595
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/recordlist/Classes/Controller/AbstractLinkBrowserController.php

index 4816e05..dd2a281 100644 (file)
@@ -567,7 +567,8 @@ abstract class AbstractLinkBrowserController
     public function getUrlParameters(array $overrides = null)
     {
         return [
-            'act' => isset($overrides['act']) ? $overrides['act'] : $this->displayedLinkHandlerId
+            'act' => isset($overrides['act']) ? $overrides['act'] : $this->displayedLinkHandlerId,
+            'P' => isset($overrides['P']) ? $overrides['P'] :  $this->parameters,
         ];
     }