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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.9.1252
    • Fix Version/s: 1.0 B1
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: