Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6729

Backport: Xinha saves <br/> for empty field - CMS7-4906

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.16.04
    • 2.22.16
    • None
    • HST 2.05.03

    Description

      An existing Xinha field that is cleared still saves '<br/>' as content. This makes it tricky to check whether the field is empty or not (i.e. to render a heading for that field in a JSP or not).

      Steps to reproduce:
      1. create a new document that contains a field of type 'hippostd:html' (e.g. create a new news item in Go Green and use the field 'description')
      2. enter the text 'test'
      3. save and publish the document

      The content of the field is now:

      '<html>
      <body>

      <p>test</p>

      </body>
      </html>'

      4. edit the field again and delete the text 'test'
      5. save and publish the document

      Expected behavior: the content of the field is now:

      <html>
      <body>
      </body>
      </html>

      Actual behavior: the content of the field is now:

      '<html>
      <body>
      <br/>

      </body>
      </html>'

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              abogaart Arthur Bogaart
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: