[TASK] Remove usage of setForm from PageFunctionsController 50/44450/2
authorJan Helke <typo3@helke.de>
Sat, 31 Oct 2015 17:16:18 +0000 (18:16 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Oct 2015 18:48:01 +0000 (19:48 +0100)
Resolves: #71210
Releases: master
Change-Id: Ib6e1cfcd64fe6a1c0cd66329ef4e3b801c3531fc
Reviewed-on: https://review.typo3.org/44450
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/func/Classes/Controller/PageFunctionsController.php

index 08bfe6b..b36c497 100644 (file)
@@ -124,7 +124,7 @@ class PageFunctionsController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                 'if (top.fsMod) top.fsMod.recentIds["web"] = ' . (int)$this->id . ';');
             // Setting up the context sensitive menu:
             $this->moduleTemplate->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/ClickMenu');
-            $this->moduleTemplate->setForm('<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('web_func')) . '" method="post"><input type="hidden" name="id" value="' . htmlspecialchars($this->id) . '" />');
+            $this->content .= '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('web_func')) . '" id="PageFunctionsController" method="post"><input type="hidden" name="id" value="' . htmlspecialchars($this->id) . '" />';
             $vContent = $this->moduleTemplate->getVersionSelector($this->id, true);
             if ($vContent) {
                 $this->content .= $this->moduleTemplate->section('', $vContent);
@@ -133,6 +133,7 @@ class PageFunctionsController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
             // Setting up the buttons and markers for docheader
             $this->getButtons();
             $this->generateMenu();
+            $this->content .= '</form>';
         } else {
             // If no access or if ID == zero
             $title = $this->getLanguageService()->getLL('title');