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

Xinha saves <br/> for empty field

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.16.04
    • 2.24.01
    • 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
              mdenburger Mathijs den Burger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: