#103853Language selector in the EditDocumentController does not contain the columnsOnly param
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.
Reviews 2
Related issues 1
History 711
-
Georg Ringer commented <span data-processor="relativetime" data-value="2024-05-25T08:47:58+00:00" > 05/25/24, 08:47 </span>
I would go for version 1
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2024-07-31T09:06:35+00:00" > 07/31/24, 09:06 </span>
-
Oliver Bartsch changed
parent task #89223<span data-processor="relativetime" data-value="2025-02-28T13:49:17+00:00" > 02/28/25, 13:49 </span> -
Oliver Bartsch changed Related to #89223 <span data-processor="relativetime" data-value="2025-02-28T13:49:38+00:00" > 02/28/25, 13:49 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 88410 status
NewUnder Review <span data-processor="relativetime" data-value="2025-02-28T16:26:05+00:00" > 02/28/25, 16:26 </span> -
Gerrit Code Review pushed patch set 2 for main to change 88410 <span data-processor="relativetime" data-value="2025-02-28T16:57:19+00:00" > 02/28/25, 16:57 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 88410 <span data-processor="relativetime" data-value="2025-02-28T19:26:19+00:00" > 02/28/25, 19:26 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88434 <span data-processor="relativetime" data-value="2025-03-03T09:55:44+00:00" > 03/03/25, 09:55 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-03-03T10:00:09+00:00" > 03/03/25, 10:00 </span>Applied in changeset commit:4b9ba691f8178a3d83880ef5d072efdb734fe3d5.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:36:24+00:00" > 08/12/25, 14:36 </span>
I will try to provide a patch. I would just like to know which solution is the preferred one.