Project

General

Profile

Bug #57063 » InlineElement.patch

David Greiner, 2014-04-09 11:55

View differences:

typo3/sysext/backend/Classes/Form/Element/InlineElement.php
}
}
// Set language of new child record to the language of the parent record:
if ($config['localizationMode'] == 'select') {
if ($config['behaviour']['localizationMode'] == 'select') {
$parentRecord = $this->getRecord(0, $parent['table'], $parent['uid']);
$parentLanguageField = $GLOBALS['TCA'][$parent['table']]['ctrl']['languageField'];
$childLanguageField = $GLOBALS['TCA'][$current['table']]['ctrl']['languageField'];
(1-1/2)