RM-5012 - fix set explicit identifier on record and ftp upload

This commit is contained in:
Ana Bozianu
2017-05-11 11:41:24 +03:00
parent 1f6a96469e
commit aa7eeb5621
2 changed files with 5 additions and 4 deletions

View File

@@ -486,10 +486,6 @@ public class RecordServiceImpl extends BaseBehaviourBean
}
}
// create and file the content as a record
file(nodeRef);
// recalculate disposition schedule for the record when linking it
dispositionService.recalculateNextDispositionStep(nodeRef);
}
}
catch (RecordLinkRuntimeException e)

View File

@@ -56,6 +56,11 @@ public class RecordUtils
{
mandatory("nodeService", nodeService);
mandatory("nodeRef", nodeRef);
if(nodeService.hasAspect(nodeRef, ContentModel.ASPECT_NO_CONTENT))
{
return;
}
// get the record id
String recordId = (String) nodeService.getProperty(nodeRef, PROP_IDENTIFIER);