Label user function for sys_file_reference uses HTML
The label user function for sys_file_reference uses HTML which results in strange data in the workspace module, the admin log and possibly also in other components that list sys_file_reference records in a list (see attached screenshots).
This behaviour has been introduced with this change:
Updated by Markus Klein over 7 years ago
What do you propose to change here?
What do you want to see as label in the Workspace Module?
I'd say we change the InlineElement.php to add another option/parameter/whatever to the userfunc called, such that the userfunc can distinguish between normal labeling and inline labeling.
Updated by Philipp Gampe over 7 years ago
- Assignee set to Philipp Gampe
I changed this to a new config option
inlineLabel_userFunc with the same signature as the
InlineElement::renderForeignRecordHeader is only called from
InlineElement::renderForeignRecord which in turn is only used to render IRRE fields AFAICT.
That way all other places preserve the behavior.