Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20465

AWM short text field ~ display bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • App Within Minutes
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When viewing the document with an object in it and the short text field has ~ character in it, it doesn't get displayed. So, consider that an object like this is created:

      After I save it, I get:

       

      As you can see, the ~ character is gone from the short text field but not from the title and not from the long text field.

      Then, when I press on the edit button, I get:

       

      And then when I press on the save button:

      Buggy.

      I can fix it for the shortText1 field  by changing

      <dd>$doc.display('shortText1')</dd>
      

      to

      $services.rendering.escape($object['shortText1'], $doc.syntax)
      

      in the class sheet. But then after the class is edited, it gets broken again, so it has to be fixed somewhere in the class editor or something, so it generates proper class sheet.

      Attachments

        1. image-2022-12-11-19-13-14-813.png
          15 kB
          Sergei Olegovich Kulagin
        2. image-2022-12-11-19-13-24-714.png
          9 kB
          Sergei Olegovich Kulagin
        3. image-2022-12-11-19-15-02-871.png
          6 kB
          Sergei Olegovich Kulagin
        4. image-2022-12-11-19-15-22-648.png
          7 kB
          Sergei Olegovich Kulagin

        Activity

          People

            Unassigned Unassigned
            Kulagin Sergei Olegovich Kulagin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: