Hi,
this is a short code part from DocVersioningListener.java, Nuxeo 5.1.6:
// (line 152)
} else if (eventId.equals(BEFORE_DOC_UPDATE)) {
try {
if (!isIncOptionUserSelected(doc)) {
req = createAutoChangeRequest(doc);
return;
}
If the user has no choice how to increment the version isIncOptionUserSelected
(obviously) returns false and the createAutoChangeRequest method is called.
I have have two questions regarding this code:
1) Is it not possible to use versioningRuleEdit to auto increment the version?
It seems like that code uses versioningRuleAuto, even if the document just got
edited and an appropriate versioningRuleEdit exists.
2) The code seems to result in no version change at all, since no
service.incrementVersions(req) occurs prior the return. Is this right?
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm