[BUGFIX] Move hidden fields back into form tag 67/44467/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sat, 31 Oct 2015 23:48:49 +0000 (00:48 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 31 Oct 2015 23:49:50 +0000 (00:49 +0100)
F.I.S.H.

Resolves: #71223
Releases: master
Change-Id: Iebb01174482d3be4a7c2e3c99281e75a939bdab2
Reviewed-on: https://review.typo3.org/44467
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php

index 5630970..1400fe7 100644 (file)
@@ -994,6 +994,7 @@ class EditDocumentController extends AbstractModule
                 $body = $this->formResultCompiler->JStop();
                 $body .= $this->compileForm($editForm);
                 $body .= $this->formResultCompiler->printNeededJSFunctions();
+                $body .= '</form>';
             }
         }
         // Access check...
@@ -1462,8 +1463,7 @@ class EditDocumentController extends AbstractModule
                        <input type="hidden" name="closeDoc" value="0" />
                        <input type="hidden" name="doSave" value="0" />
                        <input type="hidden" name="_serialNumber" value="' . md5(microtime()) . '" />
-                       <input type="hidden" name="_scrollPosition" value="" />
-                       </form>';
+                       <input type="hidden" name="_scrollPosition" value="" />';
         return $formContent;
     }