[BUGFIX] Do not create new records twice 61/42561/2
authorMarkus Klein <markus.klein@typo3.org>
Thu, 13 Aug 2015 10:20:37 +0000 (12:20 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 13 Aug 2015 11:28:43 +0000 (13:28 +0200)
This fixes a wrong JS call that was introduced with #68166

Resolves: #69013
Releases: master
Change-Id: I1181b9e1dbf2aff04910f704d5833f809baa4945
Reviewed-on: http://review.typo3.org/42561
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
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) {