[ 
http://jira.xwiki.org/jira/browse/XWIKI-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_23049
 ] 

Sergiu Dumitriu commented on XWIKI-2130:
----------------------------------------

These methods used to work when versions were "1.x" only. Since we introduced 
minor/major versions, the code doesn't work anymore.

> Document.getPreviousDocument() and Document.getPreviousVersion() seems not to 
> work
> ----------------------------------------------------------------------------------
>
>                 Key: XWIKI-2130
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2130
>             Project: XWiki Core
>          Issue Type: Bug
>          Components: APIs, Storage
>    Affects Versions: 1.3 M2
>            Reporter: Jean-Vincent Drean
>            Priority: Critical
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to