Project

General

Profile

Actions

Bug #85774

closed

userTSConfig options.saveDocNew.table = 0 does not work anymore

Added by Claus Harup over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Start date:
2018-08-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

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?

Actions #2

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 :-)

Actions #3

Updated by Susanne Moog about 6 years ago

  • Target version changed from 8.7.19 to Candidate for patchlevel
Actions #4

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

Actions #5

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

Actions #6

Updated by Anonymous about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF