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

Sheet PR are not preserved if the displayed document and the context document are different instances of the same document

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1-milestone-1
    • 4.0
    • Sheet
    • None
    • Unit
    • Medium

    Description

      This happens because the SheetDocumentDisplayer puts the displayed document on the context only if it's different than the current document, but the difference is checked by comparing the document references.

      You can reproduce this problem by rendering a wiki macro before displaying a document that has a sheet with programming rights. The wiki macro changes the context document before it is rendered and doesn't restore the exact same instance: it restores the saved version, so a different instance of the same document.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: