VersionModel : getDescription() does not work ?
Hi,
I want to use a listener to delete automaticaly old archived version (autoversionning is activated) which do not have a comment when a user increment the version. Unfortunately, the method getDescription() of VersionModel always returns a null String :
DocumentRef docRef = model.getRef();
CoreSession session = model.getCoreSession();
List<VersionModel> versions = session.getVersionsForDocument(docRef);
for (VersionModel currentVersion : versions) {
String desc = currentVersion.getDescription();
//desc is always null
...
}
Is this the good way to do or is this a bug ?
Thanks.
0 votes
0 answers
1447 views
Is there a way to retrieve the comment when a user make a version increment (minor or major) ?
Thanks.