View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034465 | mantisbt | html | public | 2024-06-09 10:30 | 2025-05-31 12:17 |
Reporter | atrol | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Target Version | 2.28.0 | ||||
Summary | 0034465: Wrong rendering of strings | ||||
Description | Most of the string values are rendered wrong if the values contain one of the html tags configured in This is caused by using
Affected fields
Related 0034463 | ||||
Tags | No tags attached. | ||||
@dregad @vboctor The change in terms of
But I am a bit worried, as the current code is used since many years (of course, not clean as string_attribute was already used at some places). If yes, I would continue my work. |
|
I agree. I can't think of any other places where string_display_line() should be used at the moment. We don't have so many free-text, single-line fields (os/os_build/platform, version fields), and even for those it does not necessarily make sense to allow formatting.
Of course such change has the potential to introduce regressions for anyone expecting a field's value to be formatted, but I think that's an acceptable risk and we can always advise if and when someone complains. |
|
years ago I made a plugin (it is not public and only used in our company) to change the display text of a custom field's name and with the now missing signal of EVENT_DISPLAY_TEXT it is not workig anymore. (updating from 2.25.1 to 2.27.1) the function to replace the field's names is tied to that event and reads like this: |
|
The official, recommended way of altering a plugin's display name (label) is documented in the Admin Guide I'm not sure why a plugin would be needed for this. |
|
it is a historically grown function within my plugin (that manipulates the appearance of customfields much more than just changing the display name) if someone else is looking for a similar solution in the future here is how I fixed it in my specific case:
thanks for pointing me in the right direction! EDIT: formatting code is hard |
|
Just for the record, this was introduced in 2.27.0 by 0034463 |
|