mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4572 - check if node still exists
This commit is contained in:
@@ -268,7 +268,11 @@ public class RecordComponentIdentifierAspect extends BaseBehaviourBean
|
|||||||
* When creating a new record the identifier is writable to allow the upload in multiple steps.
|
* 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).
|
* On transaction commit make the identifier read only (remove the editable aspect).
|
||||||
*/
|
*/
|
||||||
nodeService.setProperty(childAssocRef.getChildRef(), RecordsManagementModel.PROP_ID_IS_TEMPORARILY_EDITABLE, false);
|
NodeRef newNode = childAssocRef.getChildRef();
|
||||||
|
if(nodeService.exists(newNode))
|
||||||
|
{
|
||||||
|
nodeService.setProperty(newNode, RecordsManagementModel.PROP_ID_IS_TEMPORARILY_EDITABLE, false);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user