mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5012 - added extra check to not add identifier twice
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user