12781.patch

Administrator Admin, 2009-11-26 17:53

Download (1013 Bytes)

View differences:

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