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

Document.getRenderedContent() should be executed with the right of the document

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A

    Description

      To reproduce:

      page1:

      {{velocity}}
      $xwiki.getDocument("page2").getRenderedContent()
      {{/velocity}}
      

      page2:

      {{velocity}}
      $doc
      {{/velocity}}
      

      Result: it prints page1 when executed from page1 (instead of page2).

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              vmassol Vincent Massol
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: