mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1761 (Reverted document always has Recorded Version Configuration set to None)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@90135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
*/
|
||||
package org.alfresco.module.org_alfresco_module_rm.version;
|
||||
|
||||
import static org.codehaus.plexus.util.StringUtils.isNotBlank;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -526,4 +528,20 @@ public class RecordableVersionServiceImpl extends Version2ServiceImpl
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.version.Version2ServiceImpl#revert(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.version.Version, boolean)
|
||||
*/
|
||||
@Override
|
||||
public void revert(NodeRef nodeRef, Version version, boolean deep)
|
||||
{
|
||||
String versionPolicy = (String) dbNodeService.getProperty(nodeRef, PROP_RECORDABLE_VERSION_POLICY);
|
||||
|
||||
super.revert(nodeRef, version, deep);
|
||||
|
||||
if (isNotBlank(versionPolicy))
|
||||
{
|
||||
dbNodeService.setProperty(nodeRef, PROP_RECORDABLE_VERSION_POLICY, versionPolicy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user