Bug #85774
closeduserTSConfig options.saveDocNew.table = 0 does not work anymore
100%
Description
Running on TYPO3 v. 8.7.18
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tt_content = 0');
in ext_localconf.php does not hide the button no more :-(
I rolled back to TYPO3 v. 8.7.13 and then it worked again :-|
Hint: sysext/backend/Classes/Controller/EditDocumentController.php
Updated by Guido Schmechel over 6 years ago
Related Bugfix: https://review.typo3.org/c/56817/
Following code (line 1230) ignores the settings
// Hide the button for tt_content when in connected translation mode
if ($this->firstEl['table'] === 'tt_content') {
$showSaveAndNewButton = $this->isPageInFreeTranslationMode(
(int)$this->pageinfo['uid'],
!$isSavedRecord ? (int)$this->defVals['colPos'] : (int)$record['colPos'],
$sysLanguageUid
);
}
Maybe it should only check if sysLanguageUid is greater than 0?
Updated by Claus Harup over 6 years ago
The sys_language_uid is 0... - and I agree, the check should only be done with value greater than 0 :-)
Updated by Susanne Moog about 6 years ago
- Target version changed from 8.7.19 to Candidate for patchlevel
Updated by Gerrit Code Review about 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58602
Updated by Gerrit Code Review about 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58603
Updated by Anonymous about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e98c249678e8ee5464b10494e0a4cfbd2531b35d.