mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix audit issue
This commit is contained in:
@@ -1437,8 +1437,12 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
if (entry.getEvent().equals("Create Person") && entry.getNodeRef() != null)
|
||||
{
|
||||
NodeRef nodeRef = entry.getNodeRef();
|
||||
String userName = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
|
||||
json.put("nodeName", userName == null ? "": userName);
|
||||
String userName = "";
|
||||
if (nodeService.exists(nodeRef))
|
||||
{
|
||||
userName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
|
||||
}
|
||||
json.put("nodeName", userName == null ? "" : userName);
|
||||
json.put("createPerson", true);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user