Skip to content
Snippets Groups Projects
Commit 1a2b8e53 authored by juanf's avatar juanf
Browse files

SSDM-2597 : safe coding to avoid problems with bad responses

SVN: 37276
parent 80e8fc56
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,9 @@ function AdvancedSearchController(mainController, forceFreeTextSearch) {
rowData.experiment = entity.experiment.code;
}
rowData.entityType = entity.type.code;
rowData.entityType = (entity.type)?entity.type.code:"";
rowData.code = entity.code;
rowData.permId = entity.permId.permId;
rowData.permId = (entity.permId)?entity.permId.permId:"";
rowData.registrationDate = (entity.registrator && entity.registrator.registrationDate)?Util.getFormatedDate(new Date(entity.registrator.registrationDate)):null;
rowData.modificationDate = (entity.modifier && entity.modifier.registrationDate)?Util.getFormatedDate(new Date(entity.modifier.registrationDate)):null;
rowData.entityObject = entity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment