[BUGFIX] Page module Quickedit: wizards are broken 20/33820/3
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 5 Nov 2014 14:27:26 +0000 (09:27 -0500)
committerBenjamin Mack <benni@typo3.org>
Sat, 8 Nov 2014 18:22:23 +0000 (19:22 +0100)
When using Quickedit mode of Page module, the header link and the RTE
wizards are broken.
Backpath is added twice to the wizard urls.

Releases: master, 6.2
Resolves: #60958
Change-Id: I9ad470f9b7ffd4b74a91e02c4be2615723e79fd3
Reviewed-on: http://review.typo3.org/33820
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 93a15e1..7b6081e 100644 (file)
@@ -2616,13 +2616,12 @@ class FormEngine {
                                                                        if (isset($wConf['module']['urlParameters']) && is_array($wConf['module']['urlParameters'])) {
                                                                                $urlParameters = $wConf['module']['urlParameters'];
                                                                        }
-                                                                       $wScript = BackendUtility::getModuleUrl($wConf['module']['name'], $urlParameters);
+                                                                       $wScript = BackendUtility::getModuleUrl($wConf['module']['name'], $urlParameters, $this->backPath);
                                                                } elseif (in_array($wConf['type'], array('script', 'colorbox', 'popup'), TRUE)) {
                                                                        // Illegal configuration, fail silently
                                                                        break;
                                                                }
-
-                                                               $url = $this->backPath . $wScript . (strstr($wScript, '?') ? '' : '?');
+                                                               $url = ($wScript ?: $this->backPath) . (strstr($wScript, '?') ? '' : '?');
                                                                // If "script" type, create the links around the icon:
                                                                if ((string)$wConf['type'] === 'script') {
                                                                        $aUrl = $url . GeneralUtility::implodeArrayForUrl('', array('P' => $params));