RM-1879 (Audit: Delete object event displays wrong path for different browser languages other than English)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95688 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-01-31 22:34:19 +00:00
parent 65698b90cc
commit 9b9ae58b05

View File

@@ -1410,6 +1410,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
json.put("fullName", entry.getFullName() == null ? "": entry.getFullName());
json.put("nodeRef", entry.getNodeRef() == null ? "": entry.getNodeRef());
// TODO: Find another way for checking the event
if (entry.getEvent().equals("Create Person") && entry.getNodeRef() != null)
{
NodeRef nodeRef = entry.getNodeRef();
@@ -1417,6 +1418,10 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
json.put("nodeName", userName == null ? "": userName);
json.put("createPerson", true);
}
if (entry.getEvent().equals("Delete RM Object"))
{
json.put("deleteObject", true);
}
else
{
json.put("nodeName", entry.getNodeName() == null ? "": entry.getNodeName());