Project

General

Profile

Actions

Bug #16956

closed

Redundant comma in label_alt_force

Added by Julian Kleinhans over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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

0004943.diff (876 Bytes) 0004943.diff Administrator Admin, 2007-02-09 08:34
patch_bug_0004943.txt (898 Bytes) patch_bug_0004943.txt Administrator Admin, 2007-02-09 09:30
Actions

Also available in: Atom PDF