From f1ec66d9ffc075fb7b32cf21f934c884718dacc9 Mon Sep 17 00:00:00 2001 From: Ana Bozianu Date: Fri, 3 Mar 2017 15:13:03 +0200 Subject: [PATCH] RM-4619 - fixed the reject record issue --- .../model/rma/aspect/RecordComponentIdentifierAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordComponentIdentifierAspect.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordComponentIdentifierAspect.java index 2fda63641b..ba91199d44 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordComponentIdentifierAspect.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordComponentIdentifierAspect.java @@ -268,7 +268,7 @@ public class RecordComponentIdentifierAspect extends BaseBehaviourBean * When creating a new record the identifier is writable to allow the upload in multiple steps. * On transaction commit make the identifier read only (remove the editable aspect). */ - if(nodeService.exists(nodeRef)) + if(nodeService.exists(nodeRef) && nodeService.hasAspect(nodeRef, aspectTypeQName)) { nodeService.setProperty(nodeRef, RecordsManagementModel.PROP_ID_IS_TEMPORARILY_EDITABLE, false); }