Project

General

Profile

Bug #16164 » tslib_content-validateForm.diff

Administrator Admin, 2007-04-20 13:48

View differences:

class.tslib_content-validateForm.php 2007-02-21 15:37:26.000000000 +0100
// Adding evaluation based on settings:
switch((string)$modeParameters[0]) {
$labelJS = $GLOBALS['TSFE']->csConvObj->utf8_encode($confData,$GLOBALS['TSFE']->renderCharset));
case 'EREG':
$fieldlist[] = '_EREG';
$fieldlist[] = rawurlencode($modeParameters[1]);
$fieldlist[] = rawurlencode($modeParameters[2]);
$fieldlist[] = rawurlencode($confData['fieldname']);
$fieldlist[] = rawurlencode($confData['label']);
$fieldlist[] = rawurlencode($labelJS);
$confData['required'] = 1; // Setting this so "required" layout is used.
break;
case 'EMAIL':
$fieldlist[] = '_EMAIL';
$fieldlist[] = rawurlencode($confData['fieldname']);
$fieldlist[] = rawurlencode($confData['label']);
$fieldlist[] = rawurlencode($labelJS);
$confData['required'] = 1; // Setting this so "required" layout is used.
break;
default:
if ($confData['required'] && $confData['type']!='check') {
$fieldlist[] = rawurlencode($confData['fieldname']);
$fieldlist[] = rawurlencode($confData['label']);
$fieldlist[] = rawurlencode($labelJS);
}
break;
}
(3-3/4)