[TASK] Remove usage of modTmpl->setForm from ImportExportController 54/44454/2
authorJan Helke <typo3@helke.de>
Sat, 31 Oct 2015 18:03:33 +0000 (19:03 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Oct 2015 19:02:08 +0000 (20:02 +0100)
Resolves: #71214
Releases: master
Change-Id: Ic763cecf6227fee5e88bf77801be9a1848d49961
Reviewed-on: https://review.typo3.org/44454
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/impexp/Classes/Controller/ImportExportController.php

index c01414e..35312a9 100644 (file)
@@ -148,8 +148,8 @@ class ImportExportController extends BaseScriptClass
             'ImpexpInLineJS',
             'if (top.fsMod) top.fsMod.recentIds["web"] = ' . (int)$this->id . ';'
         );
-        $this->moduleTemplate->setForm('<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('xMOD_tximpexp')) . '" method="post" enctype="multipart/form-data">'
-            . '<input type="hidden" name="id" value="' . $this->id . '" />');
+        $this->content = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('xMOD_tximpexp')) . '" method="post" id="ImportExportController" enctype="multipart/form-data">'
+            . '<input type="hidden" name="id" value="' . $this->id . '" />';
         // Input data grabbed:
         $inData = GeneralUtility::_GP('tx_impexp');
         $this->content .= $this->moduleTemplate->sectionHeader($this->lang->getLL('title_' . (string)$inData['action']));
@@ -180,6 +180,7 @@ class ImportExportController extends BaseScriptClass
         }
         // Setting up the buttons and markers for docheader
         $this->getButtons();
+        $this->content .= '</form>';
     }
 
     /**