Revert "Fix audit issue"

This reverts commit d8f0c87c5b.
This commit is contained in:
Mihai Cozma
2016-09-19 14:48:14 +03:00
parent d8f0c87c5b
commit fbe55ac0a9

View File

@@ -1436,11 +1436,8 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
if (entry.getEvent().equals("createPerson") && entry.getNodeRef() != null)
{
NodeRef nodeRef = entry.getNodeRef();
String userName = "";
if (nodeService.exists(nodeRef))
{
userName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
}
String userName = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME);
json.put("nodeName", userName == null ? "": userName);
}
else
{