RM-4619 - fixed the reject record issue

This commit is contained in:
Ana Bozianu
2017-03-03 15:13:03 +02:00
parent 1b366d5dae
commit f1ec66d9ff

View File

@@ -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);
}