Skip to content
Snippets Groups Projects
Commit 88257e42 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1054657][Person Index affectedIds retrurn [null]]

parent 2b38d13a
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,10 @@ switch (tableName)
.arrayColumn();
});
break;
default:
res = []; //needed, because the Index is being rebuilt if nothing gets returned
}
if (res) {
result.object(res);
}
......@@ -47,9 +47,9 @@ switch (tableName)
.arrayColumn();
});
break;
default:
res = []; //needed, because the Index is being rebuilt if nothing gets returned
break;
}
if (res) {
result.object(res);
}
\ No newline at end of file
result.object(res);
\ No newline at end of file
......@@ -22,15 +22,18 @@ function IndexsearchUtils() {}
*/
IndexsearchUtils.getAffectedIdValues = function(fieldname, affectedInfoContainer, updateFn) {
var affectedIds;
switch (affectedInfoContainer.action){
case "I":
affectedIds = [affectedInfoContainer.newValues[affectedInfoContainer.columns.indexOf(fieldname)]];
switch (affectedInfoContainer.action)
{
case "I":
affectedIds = affectedInfoContainer.newValues[affectedInfoContainer.columns.indexOf(fieldname)];
affectedIds = affectedIds ? [affectedIds] : []
break;
case "U":
affectedIds = updateFn.call(null, affectedInfoContainer.id);
break;
case "D":
affectedIds = [affectedInfoContainer.oldValues[affectedInfoContainer.columns.indexOf(fieldname)]];
affectedIds = affectedInfoContainer.oldValues[affectedInfoContainer.columns.indexOf(fieldname)];
affectedIds = affectedIds ? [affectedIds] : []
break;
}
return affectedIds || [];
......
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