Bug #103853
openFeature #89223: Using columnsOnly creates a button to edit whole record.....
Language selector in the EditDocumentController does not contain the columnsOnly param
0%
Description
Current Behavior
If, for example, you call the EditDocumentController from your own backend module and call the parameter columnsOnly=title, and the corresponding data record is translatable, then the previously created language menu is also output in the DocHeaderComponent in the TYPO3 backend. However, this no longer contains the columnsOnly parameter, so that editors can then edit the entire translated data record at this point (restricted to authorized fields). Editors then also have the option of switching to the first selected language and can also edit all fields to which they have access.
**Expected behavior
The language selection should continue to include the columnsOnly parameter, if it was set.
Possible Solution
1. either you pay attention to the parameter columnsOnly in https://github.com/TYPO3/typo3/blob/v13.1.0/typo3/sysext/backend/Classes/Controller/EditDocumentController.php#L1023-L1030 and generally attach these.
2. or you could provide an event for https://github.com/TYPO3/typo3/blob/v13.1.0/typo3/sysext/backend/Classes/Template/Components/MenuRegistry.php#L55 analogous to \TYPO3\CMS\Backend\Template\Components\ModifyButtonBarEvent (see https://github.com/TYPO3/typo3/blob/v13.1.0/typo3/sysext/backend/Classes/Template/Components/ButtonBar.php#L170). Then you could change the language selection menu itself again if necessary. We use the ModifyButtonBarEvent to remove the already generally rendered button “editWholeRecord”.
We needed the solution for TYPO3 v12.4.