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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3 M2
    • Fix Version/s: 1.3.1, 1.4 M1
    • Component/s: Storage, {Unused} APIs
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

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