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

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.1.4, 4.5-rc-1
    • Fix Version/s: None
    • Component/s: Rendering, Sheet
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: