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

Document.getPreviousDocument() and Document.getPreviousVersion() seems not to work

    XMLWordPrintable

Details

    Description

      Reproductibility :

      • go to any page with at least two versions in the history, edit it, write :
      • $doc.getPreviousVersion()
      • $doc.getPreviousDocument().getVersion()

      result : doc.getPreviousVersion() returns "" and doc.getPreviousDocument().getVersion() returns the first version of the document.

      Attachments

        Activity

          People

            jvdrean Jean-Vincent Drean
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: