[BUGFIX] Do not create new records twice
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / EditDocumentController.php
index b926206..1239dc4 100644 (file)
@@ -690,7 +690,7 @@ class EditDocumentController {
                $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
                $pageRenderer->addInlineLanguageLabelFile('EXT:lang/locallang_alt_doc.xlf');
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_doc.html');
-               $this->doc->form = '<form action="' . htmlspecialchars($this->R_URI) . '" method="post" enctype="multipart/form-data" name="editform" onsubmit="document.editform._scrollPosition.value=(document.documentElement.scrollTop || document.body.scrollTop); return TBE_EDITOR.checkAndDoSubmit(1);">';
+               $this->doc->form = '<form action="' . htmlspecialchars($this->R_URI) . '" method="post" enctype="multipart/form-data" name="editform" onsubmit="document.editform._scrollPosition.value=(document.documentElement.scrollTop || document.body.scrollTop); TBE_EDITOR.checkAndDoSubmit(1); return false;">';
                // override the default jumpToUrl
                $this->doc->JScodeArray['jumpToUrl'] = '
                        function jumpToUrl(URL,formEl) {