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

[Projekt: Entwicklung - xRM][TicketNr.: 1071715][Inserts an allen stellen wo...

[Projekt: Entwicklung - xRM][TicketNr.: 1071715][Inserts an allen stellen wo der WorkflowSignalSender benutzt wird werfen Fehler]
parent 2d64ca13
No related branches found
No related tags found
No related merge requests found
......@@ -295,8 +295,19 @@ ClassificationUtils.setClassificationStorageDatasetsOutdated = function (pTarget
classificationStorageIds.push(Dependency.mapping()[entityName]["Salesproject_entity"].getUIDsfn(pRowData, pChangedRows));
}
//we have to remove empty arrays, since otherwise it would lead to an error when trying to use the condition for updating
//empty arrays occur when e.g. inserting something that doesn't have any classificationStorageIds even though it is classificationrelevant
for (let i = 0; i < classificationStorageIds.length; i++)
{
if(classificationStorageIds[i][0] == undefined)
{
classificationStorageIds.splice(i, 1);
i--;
}
}
//set outdated flag for the classificationStorage datasets
if(relevantForClassification)
if(relevantForClassification && classificationStorageIds.length > 0) // also check for the classificationStorageIds.length since it could be empty
{
var cond = newWhere("CLASSIFICATIONSTORAGE.OBJECT_ROWID", classificationStorageIds, SqlBuilder.IN());
cond.updateData(true, "CLASSIFICATIONSTORAGE", ["OUTDATED"], null, [1]);
......
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