#76048IRRE: Child records - New record doesn't get language of parent (non localized records but using new button)
Description
Since 7.6 if one adds a new record to an existing record which is not in the default language, the newly created child record will not receive the language of the parent record.
This is not a problem if the record is localized BUT:
1.) There might not be a language parent to the main record – record only exists in selected language
2.) It might be possible to add additional child records to those of the parent record
The issue seems to be:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php#l133
The commented out code here. Though I think with 7.6 we should move the code to a DataHandler.
I also don’t think it helps if one creates a new record, changes it language and adds a child record prior to saving, see related issue.
Reviews 4
Related issues 11
- Bug #48883Wrong sys_language_uid in sys_file_reference
- Feature #60026Set explicitly 'readOnly' sys_language_uid of child to value, taken from parent record
- Bug #63092Inline/IRRE records: language field of child records is not updated when modifying parent language field - e.g. problematic for sys_file_reference
- Bug #73609Creating IRRE child element without language of parent element
- Bug #75040placeholder pointing to column of related record shows values from wrong language
- Bug #76181Languagefield-value of new inline relations is not in sync with the language of its parent element
- Bug #78897file references consider wrong language uid for metadata
- Bug #82330cant create inline records if ctrl > enablecolumns > endtime is not specified in childrens TCA
- Bug #101962New records created on a field of type INLINE have the wrong sys_language_uid value
- Bug #110497TCEFORM sys_language_uid.disabled = 1 doesn't write correct defaults into translated entries breaking loading of IRRE for child elements
- Bug #110498sys_file_reference value of sys_language_uid is assigned with a value of 0 in a translated model if the referenced sys_file has been used by a base language object