[BUGFIX] DocumentEditController save with translation broken
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / EditDocumentController.php
index 6a8e706..82fa866 100644 (file)
@@ -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));
         }