diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index 6a8e7063aedad2bb13e768079b86ebcb9ec8054f..82fa866c2b0b19480d428dd1541c6ebeb9699ce5 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -500,8 +500,8 @@ class EditDocumentController extends AbstractModule || isset($_POST['_saveandclosedok']) || isset($_POST['_savedokview']) || isset($_POST['_savedoknew']) - || isset($_POST['_translation_savedok_x']) - || isset($_POST['_translation_savedokclear_x']); + || isset($_POST['_translation_savedok']) + || isset($_POST['_translation_savedokclear']); return $out; } @@ -527,10 +527,10 @@ class EditDocumentController extends AbstractModule if (!empty($control)) { $tce->setControl($control); } - if (isset($_POST['_translation_savedok_x'])) { + if (isset($_POST['_translation_savedok'])) { $tce->updateModeL10NdiffData = 'FORCE_FFUPD'; } - if (isset($_POST['_translation_savedokclear_x'])) { + if (isset($_POST['_translation_savedokclear'])) { $tce->updateModeL10NdiffData = 'FORCE_FFUPD'; $tce->updateModeL10NdiffDataClear = true; } @@ -684,13 +684,13 @@ class EditDocumentController extends AbstractModule $this->previewData['table'] = $table; $this->previewData['id'] = $id; } - $tce->printLogErrorMessages(isset($_POST['_saveandclosedok']) || isset($_POST['_translation_savedok_x']) ? $this->retUrl : $this->R_URL_parts['path'] . '?' . GeneralUtility::implodeArrayForUrl('', $this->R_URL_getvars)); + $tce->printLogErrorMessages(isset($_POST['_saveandclosedok']) || isset($_POST['_translation_savedok']) ? $this->retUrl : $this->R_URL_parts['path'] . '?' . GeneralUtility::implodeArrayForUrl('', $this->R_URL_getvars)); } // || count($tce->substNEWwithIDs)... If any new items has been save, the document is CLOSED // because if not, we just get that element re-listed as new. And we don't want that! if ((int)$this->closeDoc < self::DOCUMENT_CLOSE_MODE_DEFAULT || isset($_POST['_saveandclosedok']) - || isset($_POST['_translation_savedok_x']) + || isset($_POST['_translation_savedok']) ) { $this->closeDocument(abs($this->closeDoc)); } diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/SplitButtons.js b/typo3/sysext/backend/Resources/Public/JavaScript/SplitButtons.js index 7c11585ca252a915a2e94df3780b2ecdb9e4843d..71fda54ac667fe8d798967989656f848db4e980d 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/SplitButtons.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/SplitButtons.js @@ -37,7 +37,11 @@ define(['jquery', 'TYPO3/CMS/Backend/Icons'], function($, Icons) { 'button[name^="_save"]', 'a[data-name^="_save"]', 'button[name="CMD"][value^="save"]', - 'a[data-name="CMD"][data-value^="save"]' + 'a[data-name="CMD"][data-value^="save"]', + 'button[name^="_translation_save"]', + 'a[data-name^="_translation_save"]', + 'button[name="CMD"][value^="_translation_save"]', + 'a[data-name="CMD"][data-value^="_translation_save"]' ].join(','); $('.t3js-module-docheader').on('click', elements, function(e) { // prevent doubleclick double submission bug in chrome,