#88063DataHandler checks parent instead of inline table on localization
Description
DataHandler line 4107: copyRecord_processInline()
4125: // If language is set and differs from original record, this isn't a copy action but a localization of our parent/ancestor:
4126: if ($language > 0 && BackendUtility::isTableLocalizable($table) && $language != $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']]) {
4127: // Children should be localized when the parent gets localized the first time, just do it:
4128: $newId = $this->localize($v['table'], $v['id'], $language);
4129: }
In line 4126 it is checked if the parent but not the child table is localizable.
This leads to the following problem:
If you try to localize a record e.g. a download(localizable) which holds multiple downloadfiles(table is not localizable), an error is thrown that says :
’1: Localization failed; “languageField” and “transOrigPointerField” must be defined for the table …’
Reviews 1
Related issues 2
Files 1
History 912
-
Susanne Moog changed category <span data-processor="relativetime" data-value="2019-04-14T21:17:03+00:00" > 04/14/19, 21:17 </span>
-
Pascal Rinker commented <span data-processor="relativetime" data-value="2019-08-06T13:59:44+00:00" > 08/06/19, 13:59 </span>
I had the same problem couple of weeks ago and debugged this “issue” until I determined that it´s more a feature than a bug. In TYPO3 9 the DataHandler copies your records if you´re going to localize them. Those records are in the same table and have the same values than the original if you set `l10n_mode = exclude`. In my opinion are these fields required for the DataHandler to know which record contains which language and what the original uid was.
-
Tymoteusz Motylewski changed Related to #90170 <span data-processor="relativetime" data-value="2024-09-03T10:09:55+00:00" > 09/03/24, 10:09 </span>
-
Sven Burkert commented and changed attached test.zip TYPO3 Version
913 PHP Version7.28.4 <span data-processor="relativetime" data-value="2025-12-05T11:24:32+00:00" > 12/05/25, 11:24 </span>Still a problem in TYPO3 v13.
I’ve added a demo extension for reproducing the problem.
Not only an error message is shown, but on every save of a record from default language a translation entry in the inline table is created. -
Sven Burkert commented <span data-processor="relativetime" data-value="2025-12-05T16:51:21+00:00" > 12/05/25, 16:51 </span>
I guess I have fixed this now, all I had to do is to remove TCA configuration option “l10n_mode=exclude”.
And add this configuration to disable editing in alternative languages:'appearance' => [ 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 0, 'showNewRecordLink' => 0, ],And add this in Domain Model in getter:
public function getField(): ObjectStorage { $this->_localizedUid = $this->uid; return $this->field; }Means, “l10n_mode=exclude” results to wrong and unexpected results.
-
Gerrit Code Review pushed patch set 7 for main to change 88837 status
NewUnder Review <span data-processor="relativetime" data-value="2026-02-24T21:23:11+00:00" > 02/24/26, 21:23 </span> -
Gerrit Code Review pushed patch set 8 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-25T09:38:32+00:00" > 02/25/26, 09:38 </span>
-
Christian Kuhn changed Related to #78642 <span data-processor="relativetime" data-value="2026-03-17T09:17:09+00:00" > 03/17/26, 09:17 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 88837 <span data-processor="relativetime" data-value="2026-04-10T18:34:57+00:00" > 04/10/26, 18:34 </span>
-
Torben Hansen commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-11T11:40:07+00:00" > 04/11/26, 11:40 </span>Applied in changeset commit:c3642829a320c4b5e131b352fc5adefa67242cb6.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:29+00:00" > 04/21/26, 11:30 </span>
@Philipp Can you please push a patch to Gerrit?