Commit da4c15ef authored by Rupert Germann's avatar Rupert Germann
Browse files

- changed the parsing of recordtiltles in lists. Now 'label_alt' and...

- changed the parsing of recordtiltles in lists. Now 'label_alt' and 'label_alt_force' are honored too. (resolves bugs 935 and 920)


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@646 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 9feaf62e
......@@ -568,7 +568,19 @@ class localRecordList extends recordList {
$theData = Array();
foreach($this->fieldArray as $fCol) {
if ($fCol==$titleCol) {
$recTitle = t3lib_BEfunc::getProcessedValueExtra($table,$fCol,$row[$fCol],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
if ($GLOBALS['TCA'][$table]['ctrl']['label_alt'] && ($GLOBALS['TCA'][$table]['ctrl']['label_alt_force'] || !strcmp($row[$fCol],''))) {
$altFields=t3lib_div::trimExplode(',',$GLOBALS['TCA'][$table]['ctrl']['label_alt'],1);
$tA=array();
if ($row[$fCol]) { $tA[]=$row[$fCol]; }
while(list(,$fN)=each($altFields)) {
$t = t3lib_BEfunc::getProcessedValueExtra($table,$fN,$row[$fN],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
if($t) { $tA[] = $t; }
}
if ($GLOBALS['TCA'][$table]['ctrl']['label_alt_force']) { $t=implode(', ',$tA); }
if ($t) { $recTitle = $t; }
} else {
$recTitle = t3lib_BEfunc::getProcessedValueExtra($table,$fCol,$row[$fCol],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
}
$theData[$fCol] = $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
} elseif ($fCol=='pid') {
$theData[$fCol]=$row[$fCol];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment