Project

General

Profile

Feature #20520 » t3lib_tceforms-new.diff

Administrator Admin, 2009-07-08 10:53

View differences:

typo3_cureent/t3lib/class.t3lib_tceforms.php 2009-07-08 10:30:48.000000000 +0200
function getSingleField_typeSelect($table,$field,$row,&$PA) {
global $TCA;
foreach ($this->hookObjectsSingleField as $hookObj) {
if (method_exists($hookObj,'getSingleField_typeSelect_preProcess')) {
$hookObj->getSingleField_typeSelect_preProcess($table, $field, $row, $PA);
}
}
// Field configuration from TCA:
$config = $PA['fieldConf']['config'];
......
$typeNum = (string)$typeNum; // Force to string. Necessary for eg '-1' to be recognized as a type value.
if (!$TCA[$table]['types'][$typeNum]) { // However, if the type "0" is not found in the "types" array, then default to "1" (for historical reasons)
$typeNum = 1;
}
foreach ($this->hookObjectsMainFields as $hookObj) {
if (method_exists($hookObj,'getRTypeNum_postProcess')) {
$hookObj->getRTypeNum_postProcess($table,$row,$typeNum);
}
}
return $typeNum;
(2-2/2)