diff --git a/Build/Sources/TypeScript/info/Resources/Public/TypeScript/TranslationStatus.ts b/Build/Sources/TypeScript/info/Resources/Public/TypeScript/TranslationStatus.ts index 8059978da109565529eeb53f61471434ec9bf39d..d75e22b8981351a5a3c111157d5df7b548036e3d 100644 --- a/Build/Sources/TypeScript/info/Resources/Public/TypeScript/TranslationStatus.ts +++ b/Build/Sources/TypeScript/info/Resources/Public/TypeScript/TranslationStatus.ts @@ -36,7 +36,7 @@ class TranslationStatus { const additionalArguments: string[] = []; $selected.each((index: number, element: Element): void => { - additionalArguments.push('edit[pages][' + (<HTMLInputElement>element).dataset.uid + ']=new'); + additionalArguments.push('cmd[pages][' + (<HTMLInputElement>element).dataset.uid + '][localize]=' + languageId); }); const updatedHref = $newButton.data('editUrl') + '&' + additionalArguments.join('&'); $newButton.attr('href', updatedHref); diff --git a/typo3/sysext/info/Classes/Controller/TranslationStatusController.php b/typo3/sysext/info/Classes/Controller/TranslationStatusController.php index 808115478440f3d45c046c5b9489652f4a931109..ae6e2046c70d3fcd1741b535ba3c18452e6f591c 100644 --- a/typo3/sysext/info/Classes/Controller/TranslationStatusController.php +++ b/typo3/sysext/info/Classes/Controller/TranslationStatusController.php @@ -346,14 +346,8 @@ class TranslationStatusController $editButton = ''; } // Create new overlay records: - $createLink = (string)$uriBuilder->buildUriFromRoute('record_edit', [ - 'columnsOnly' => 'title,hidden,sys_language_uid', - 'overrideVals' => [ - 'pages' => [ - 'sys_language_uid' => $languageId, - ], - ], - 'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI') + $createLink = (string)$uriBuilder->buildUriFromRoute('tce_db', [ + 'redirect' => GeneralUtility::getIndpEnv('REQUEST_URI') ]); $newButton = '<a href="' . htmlspecialchars($createLink) . '" data-edit-url="' . htmlspecialchars($createLink) . '" class="btn btn-default disabled t3js-language-new-' . $languageId . '" title="' . $lang->sL( 'LLL:EXT:info/Resources/Private/Language/locallang_webinfo.xlf:lang_getlangsta_createNewTranslationHeaders' diff --git a/typo3/sysext/info/Resources/Public/JavaScript/TranslationStatus.js b/typo3/sysext/info/Resources/Public/JavaScript/TranslationStatus.js index 73899a67d11e7a14c046004c915eb6eaedb6a395..b9177012ccb08adb2b2759f11b0675f9138e4514 100644 --- a/typo3/sysext/info/Resources/Public/JavaScript/TranslationStatus.js +++ b/typo3/sysext/info/Resources/Public/JavaScript/TranslationStatus.js @@ -10,4 +10,4 @@ * * The TYPO3 project - inspiring people to share! */ -define(["require","exports","jquery"],(function(e,t,n){"use strict";return new class{constructor(){this.registerEvents()}registerEvents(){n('input[type="checkbox"][data-lang]').on("change",this.toggleNewButton)}toggleNewButton(e){const t=n(e.currentTarget),a=parseInt(t.data("lang"),10),s=n(".t3js-language-new-"+a),r=n('input[type="checkbox"][data-lang="'+a+'"]:checked'),g=[];r.each((e,t)=>{g.push("edit[pages]["+t.dataset.uid+"]=new")});const c=s.data("editUrl")+"&"+g.join("&");s.attr("href",c),s.toggleClass("disabled",0===r.length)}}})); \ No newline at end of file +define(["require","exports","jquery"],(function(e,t,a){"use strict";return new class{constructor(){this.registerEvents()}registerEvents(){a('input[type="checkbox"][data-lang]').on("change",this.toggleNewButton)}toggleNewButton(e){const t=a(e.currentTarget),n=parseInt(t.data("lang"),10),s=a(".t3js-language-new-"+n),r=a('input[type="checkbox"][data-lang="'+n+'"]:checked'),c=[];r.each((e,t)=>{c.push("cmd[pages]["+t.dataset.uid+"][localize]="+n)});const g=s.data("editUrl")+"&"+c.join("&");s.attr("href",g),s.toggleClass("disabled",0===r.length)}}})); \ No newline at end of file