From 18dd525e3618e755599f1bf7e3571d7624e2e2ab Mon Sep 17 00:00:00 2001
From: "b.ulrich" <b.ulrich@adito.de>
Date: Tue, 16 Feb 2021 07:12:22 +0100
Subject: [PATCH] 1070913 Fix Error when recalculating after inserting new
 classification

---
 process/updateClassifications_serverProcess/process.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process/updateClassifications_serverProcess/process.js b/process/updateClassifications_serverProcess/process.js
index 30a7d27f5d..5777f187a6 100644
--- a/process/updateClassifications_serverProcess/process.js
+++ b/process/updateClassifications_serverProcess/process.js
@@ -929,7 +929,7 @@ function _insertPersistendClassificationDataIfNeeded()
             for (var typeId in outdatedClassificationTypeObj[objectTypes[i]][groupId])
             {
                 classificationTypeFilter = outdatedClassificationTypeObj[objectTypes[i]][groupId][typeId]["classificationTypeFilter"];
-                if(!persistedClassificationObj[uid][groupId].hasOwnProperty(typeId) && _isRelevant())
+                if(_isRelevant() && (persistedClassificationObj[uid][groupId] == undefined || !persistedClassificationObj[uid][groupId].hasOwnProperty(typeId)))
                 {
                     var values = [util.getNewUUID()
                                     , " "
-- 
GitLab