Project

General

Profile

Bug #57063 » InlineElement_2nd.patch

David Greiner, 2014-04-09 13:52

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 ( \TYPO3\CMS\Backend\Utility\BackendUtility::getInlineLocalizationMode($current['table'], $config) == 'select') {
$parentRecord = $this->getRecord(0, $parent['table'], $parent['uid']);
$parentLanguageField = $GLOBALS['TCA'][$parent['table']]['ctrl']['languageField'];
$childLanguageField = $GLOBALS['TCA'][$current['table']]['ctrl']['languageField'];
(2-2/2)