[BUGFIX] Fix broken bookmark link for tstemplate 68/44468/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 1 Nov 2015 01:37:16 +0000 (02:37 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sun, 1 Nov 2015 07:42:40 +0000 (08:42 +0100)
Bookmarking a page in tstemplate didn't work properly. Clicking the stored
link always leads to uid 0. This patch adds the "M" parameter to store the
correct URL.

Resolves: #18790
Releases: master
Change-Id: Ia0afa0a6abfdc26c62e84d9b8f2fb90678623d3e
Reviewed-on: https://review.typo3.org/44468
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php

index ebc8534..8f230b7 100755 (executable)
@@ -409,7 +409,7 @@ class TypoScriptTemplateModuleController extends BaseScriptClass
         // Shortcut
         $shortcutButton = $buttonBar->makeShortcutButton()
             ->setModuleName($this->MCONF['name'])
-            ->setGetVariables(['id']);
+            ->setGetVariables(['id', 'M']);
         $buttonBar->addButton($shortcutButton);
     }