Bug #57063 » InlineElement.patch

David Greiner, 2014-04-09 11:55

View differences:

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