diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordUtils.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordUtils.java index 9cf6fbad05..c8fa357596 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordUtils.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordUtils.java @@ -65,6 +65,12 @@ public class RecordUtils // get the record name String name = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NAME); + // skip this step if the record name already contains the identifier + if(name.contains(" (" + recordId + ")")) + { + return; + } + // rename the record int dotIndex = name.lastIndexOf('.'); String prefix = name;