I noticed that version is incremented once
DocumentEventTypes.DOCUMENT_CHECKEDOUT was received
(/nuxeo-platform-versioning-core/src/main/java/org/nuxeo/ecm/platform/versioning/listeners/DocVersioningEventListener.java:106)
and second time when DocumentEventTypes.DOCUMENT_RESTORED was received
(/nuxeo-platform-versioning-core/src/main/java/org/nuxeo/ecm/platform/versioning/listeners/DocVersioningEventListener.java:132)

The problem is that getVersionChangeRequest() returns null if no incOption
is selected (line 164), but after that this decision is overrided in line
106:
            req = getVersionChangeRequest(doc, options);
            if (req == null) {
                req = createAutoChangeRequest(doc);
            }

On Tue, May 19, 2009 at 4:08 PM, <[email protected]> wrote:

> When restoring "archived versions" Nuxeo 5.2 increments minor version
> number by 2, not by 1.
>
> For example if file is version 1.15 (written in summary tab, metadata) and
> I want to restore version 1.2 then new version will be 1.17.
> --
> Posted by "plamen" at Nuxeo Discussions <http://nuxeo.org/discussions>
> View the complete thread: <
> http://www.nuxeo.org/discussions/thread.jspa?threadID=2457#6695>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to