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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1-milestone-1
    • Component/s: Sheet
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Medium
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: