#82391Inline records in TYPO3 v. 7.6.22 crash when NOT having sys_language_uid on children
Description
I have a few plugins containing records without DB field sys_language_uid…… – after upgrading to 7.6.22 I get an error 500 when trying to add the record as inline to…. let’s say pages.
Sure I can add the language configuration fields, but maybe the core should check for the existence of the field before trying to set the field?!
sysext/backend/Classes/Controller/FormInlineAjaxController.php
if ($parent['localizationMode'] === 'select' && MathUtility::canBeInterpretedAsInteger($parent['uid'])) {
$parentRecord = $inlineRelatedRecordResolver->getRecord($parent['table'], $parent['uid']);
$parentLanguageField = $GLOBALS['TCA'][$parent['table']]['ctrl']['languageField'];
$childLanguageField = $GLOBALS['TCA'][$child['table']]['ctrl']['languageField'];
if ($parentRecord[$parentLanguageField] > 0) {
$record[$childLanguageField] = $parentRecord[$parentLanguageField]; <---------!!!!!!!!
}
}
Greatings, Claus
TYPO3 rocks!!!!
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.