Bug #62284
closedFormEngine does not trim subparts of each field in showitem
0%
Description
Hi there
If you accidently use a space before an alternate label within showitems, the label is not interpreted as a LLL-label, but used literally instead. This impacts other parts of showitem aswell.
$GLOBALS['TCA']['tt_content']['types']['myext']['showitem'] = ' CType;;4;button;1-1-1, header; LLL:EXT:myext/Resources/Private/Language/locallang_db.xlf:myext.header ';
Notice the space just before "LLL:..."
It can be solved by using trimExplode instead of explode (as shown in the attached patch).
From the possible other values incapsulated in these strings, I do not see any conflicts.
Cheers Nils
Files
Updated by Tim Lochmüller about 10 years ago
Note: The third param should not be TRUE, because it destroy such a configuration (your example): CType;;4;button;1-1-1
Updated by Nils Blattner about 10 years ago
- File 20141016-formengine.txt 20141016-formengine.txt added
Absolutely, I made the patch in a hurry :)
=> The updated patch is without the "remove empty items"
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Georg Ringer almost 9 years ago
- Status changed from New to Closed
- Priority changed from Must have to Won't have this time
Thanks for reporting this patch. even though this is absolutly valid, we don't want to spend too much time anymore with fixing the "old" formengine. the issue has been solved in 7 LTS as the whole formengine has been rewritten.
as you say yourself, there are other places as well which could be improved.