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

        Activity

          People

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

            Dates

              Created:
              Updated: