12781_v2.patch

Administrator Admin, 2009-12-16 15:57

Download (1.02 KB)

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
3048 3048
		if ($TCA[$table]['ctrl']['type'])	{
3049 3049
			$typeFieldName = $TCA[$table]['ctrl']['type'];
3050 3050
			$typeFieldConfig = $TCA[$table]['columns'][$typeFieldName];
3051
			if (isset($typeFieldConfig['l10n_mode']) && $typeFieldConfig['l10n_mode'] == 'exclude') {
3052
					// retrieve the typeNum from the original records's type field
3053
				$typeNum = $this->defaultLanguageData[$table . ':' . $row['uid']][$typeFieldName];
3054
			} else {
3055
				$typeNum = $row[$typeFieldName];	// Get value of the row from the record which contains the type value.
3056
			}
3051
			$typeNum = $this->getLanguageOverlayRawValue($table, $row, $typeFieldName, $typeFieldConfig);
3057 3052
			if (!strcmp($typeNum,''))	$typeNum=0;			// If that value is an empty string, set it to "0" (zero)
3058 3053
		} else {
3059 3054
			$typeNum = 0;	// If no "type" field, then set to "0" (zero)