Bug #51411
closedLabel user function for sys_file_reference uses HTML
100%
Description
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:
https://review.typo3.org/21916
Files
Updated by Markus Klein over 10 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 10 years ago
IMHO a bug of the inline label part ... there should be two seperate functions for labels. One for TCEfroms and one for inline labels in the backend.
Updated by Philipp Gampe over 10 years ago
- Status changed from New to Needs Feedback
Updated by Gerrit Code Review over 10 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23528
Updated by Philipp Gampe over 10 years ago
- Assignee set to Philipp Gampe
I changed this to a new config option inlineLabel_userFunc
with the same signature as the label_userFunc
.
The function 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.
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23528
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23528
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23528
Updated by Ernesto Baschny over 10 years ago
- Priority changed from Should have to Must have
- Is Regression set to No
Updated by Gerrit Code Review over 10 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23528
Updated by Philipp Gampe over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 04dcfbc72da6616552dcb2c2c676cf07ebeb33ce.