Issue Bug Closed

#16956Redundant comma in label_alt_force

Julian Kleinhans 02/08/07, 16:14 updated 03/13/07, 15:19

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.