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

Section editiong with section=1 discards content at the begining of the document

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.0 B1
    • 0.9.1252
    • None
    • None

    Description

      Consider a document like this one:

      #set($myobj = $doc.getObject("Some.Class"))
      1 Page title
      $myobj.get("property")

      The section editing code assigns a section number to the content between two consecutive headings or the last heading and EOF. This way, section=1 refers to the content below the document title.

      The problem is that when saving the first section, everything above the document title disappears.

      Attachments

        Activity

          People

            phunghainam Phung Hai Nam
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: