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)
|
if (entry.getEvent().equals("Create Person") && entry.getNodeRef() != null)
|
||||||
{
|
{
|
||||||
NodeRef nodeRef = entry.getNodeRef();
|
NodeRef nodeRef = entry.getNodeRef();
|
||||||
String userName = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
|
String userName = "";
|
||||||
json.put("nodeName", userName == null ? "": userName);
|
if (nodeService.exists(nodeRef))
|
||||||
|
{
|
||||||
|
userName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
|
||||||
|
}
|
||||||
|
json.put("nodeName", userName == null ? "" : userName);
|
||||||
json.put("createPerson", true);
|
json.put("createPerson", true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user