[TYPO3-core] RFC: Bug 4943 Redundant comma in label_alt_force

Thomas Hempel thomas at work.de
Sat Feb 10 18:54:06 CET 2007


This is a SVN patch request

Type: Bugfix

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
,

Solution:
I wrote a patch that solves this particular problem. See attached patch.


Remark:
Another problem still resists. If the "normal" label is empty the result 
will be something like

,subtitle

And if the you have more than two label parts and one in the middle is 
empty the column is removed completely from the string what can be a bit 
confusing for the user. E.g.:

title,field1,field2
title,field2
title,field3

So the question is, what is the best solution?

Branches: Trunk only

Bugtracker reference:
http://bugs.typo3.org/view.php?id=4943


Greets,
Thomas


More information about the TYPO3-team-core mailing list