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

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

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: