Actions
Bug #16956
closedRedundant comma in label_alt_force
Start date:
2007-02-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If there ist activate the "label_alt_force" in tt_content [ctrl] with eg this label_alt "title, subtitle", and the subtitle is empty, the result in db_list.php is
MyTitle,
Is the title and the subtitle empty the result is only a comma
,
i have written a patch in
t3lib/class.t3lib_befunc.php
function: getRecordTitle
line:1848
if ($TCA[$table]['ctrl']['label_alt_force'])
// PATCH begin
{
foreach($tA as $key => $value){
if($value != ''){
$tATmp .= $value.', ';
}
}
$t = substr($tATmp,0,-2);
}
// PATCH end
(issue imported from #M4943)
Files
Actions