<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, 3 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
    3 months ago
    Total: 594s
    #426965
  • Pipeline finished with Failed
    3 months ago
    Total: 558s
    #426980
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley
  • Pipeline finished with Success
    about 1 month 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

  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

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

    Also, I might have some contrib/custom module modifying that message, so we shouldn't touch existing messages at all.

    Reviewed the code, checked the test coverage, this looks safe to me.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain penyaskito Seville ๐Ÿ’ƒ, Spain ๐Ÿ‡ช๐Ÿ‡ธ, UTC+2 ๐Ÿ‡ช๐Ÿ‡บ

    We still need to cover #6 tho.

  • Pipeline finished with Failed
    24 days ago
    Total: 461s
    #474124
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley

    IMO #6 should be done in a separate issue, this is tightly scoped to just removing the placeholder markup from automatically generated messages from reverting.

Production build 0.71.5 2024