<em> tag appears in revision log message when a revision entry is reverted

Created on 30 May 2016, almost 9 years ago
Updated 17 February 2025, about 2 months ago

Created a Content Revision view with few fields which had revision log message and revert link as its fields. When you revert a revision entry, the log message shows the message with date inside tag. I have attached the screenshot.

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component

node system

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland shabbir

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley

    This is still an issue and is because things like NodeRevisionRevertForm use % placeholders. We get around this with a custom formatter than formats strings as markup. Since the revision_log is a string field, I think the easiest approach here is to just change the placeholder used to remove the markup in the first place?

  • Pipeline finished with Failed
    about 2 months ago
    Total: 594s
    #426965
  • Pipeline finished with Failed
    about 2 months ago
    Total: 558s
    #426980
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley
  • Pipeline finished with Success
    6 days ago
    Total: 683s
    #466925
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Tested out and the issue is fixed for newly reverted revisions but for existing revisions they still have em tag. So do we need an upgrade hook to retroactively fix that? Are we okay with a mix of of the 2 on the same screen?

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley

    . So do we need an upgrade hook to retroactively fix that

    I don't think that's a good idea, that could be tens or hundreds of thousands of revisions.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Iโ€™ll leave in review for others but seems odd to have mix and match. Can already see a ticket opened asking why some are italicized and some arenโ€™t

Production build 0.71.5 2024