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

include with new context or display macro breaks rendering of documents using the same sheet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 4.1.4, 4.5-rc-1
    • Rendering, Sheet
    • None
    • Unknown
    • N/A
    • N/A

    Description

      A sample xar is provided in attachment.

      To reproduce:

      1/ Create class with sheet binding
      2/ In sheet use:

      {{include reference="" /}}
      ## or
      $tdoc.content
      

      3/ Create 2 documents using object of class with different content
      4/ Create a document with

      {{display reference="doc1name" /}}
      ## or
      {{include document="doc1name" context="new" /}} 
      

      5/ go view document 2 and see the content of document 1 being shown
      6/ to fix the problem resave the sheet and everything is back to normal

      Visit Sandbox.TestDoc1 in the sample xar.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: