Project

General

Profile

Bug #21702 » 12781.patch

Administrator Admin, 2009-11-26 17:53

View differences:

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