Bug #76181
closedLanguagefield-value of new inline relations is not in sync with the language of its parent element
0%
Description
When creating a new inline element the language field is always set to default [0].
That is wrong, the new element should be in sync with the element it is related to.
Also - if you copy one content element from the default language to some translation (in page module) the inline-elements copied are not in sync with the copied translation. So the element you copied gets inserted correctly but the all inline elements still reference the default language.
TYPO3 Version is 7.6.6
Updated by Tymoteusz Motylewski about 7 years ago
- Status changed from New to Resolved
It should be fixed with this patch (merged in v7 and v8)
https://review.typo3.org/#/c/53206/
Few notes:
1) Now NEW irre elements (including FAL relations) will get a sys_language_uid of their parent.
2) There is no automatic migration of the old record having inccorrect value in the sys_language_uid.
3) The issue has been solved on the FormEngine level, thus you need to make sure you have
sys_language_uid field in the showitem list in your TCA.
Often you don't want to show the sys_language field to the user, so there is a little trick, which will make stuff work without showing the field to the user.
You just need to create a hidden palette with sys_language_uid in it.
e.g.
'showitem' = '... --palette--;;hiddenLanguagePalette,';
'hiddenLanguagePalette' => [
'showitem' => 'sys_language_uid, l10n_parent',
'isHiddenPalette' => true,
],
See TCA for sys_file_reference where this approach is used, or this pull request as a reference https://github.com/benjaminkott/bootstrap_package/pull/458
Please let me know if the issue is not solved for you.
Updated by Tymoteusz Motylewski about 7 years ago
- Related to Bug #76048: IRRE: Child records - New record doesn't get language of parent (non localized records but using new button) added