Project

General

Profile

Bug #23487 » 15611.diff

Administrator Admin, 2010-08-31 16:58

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
// Set exclude Fields:
foreach($TCA[$Ttable]['columns'] as $fN => $fCfg) {
if ($fCfg['l10n_mode']=='prefixLangTitle') { // Check if we are just prefixing:
if ($fN === 'hidden') { //Check if this is the 'hidden' field
// fetch page TSConfig
list($tscPID) = t3lib_BEfunc::getTSCpid($table, $uid, '');
$TSConfig = $this->getTCEMAIN_TSconfig($tscPID);
if (isset($TSConfig['translateToHidden']) && $TSConfig['translateToHidden'] == 1 ) {
// if the option is set to true, override value of 'hidden' field to 1
$overrideValues[$fN] = 1;
}
} elseif ($fCfg['l10n_mode']=='prefixLangTitle') { // Check if we are just prefixing:
if (($fCfg['config']['type']=='text' || $fCfg['config']['type']=='input') && strlen($row[$fN])) {
list($tscPID) = t3lib_BEfunc::getTSCpid($table,$uid,'');
$TSConfig = $this->getTCEMAIN_TSconfig($tscPID);
(1-1/2)