From 93e414a6af09c6a9306b65fa3e228a4a50cf1c6c Mon Sep 17 00:00:00 2001 From: Sebastian Listl <s.listl@adito.de> Date: Mon, 5 Oct 2020 13:54:12 +0200 Subject: [PATCH] Duplicate Person merge success condition changed --- process/DuplicateScanner_lib/process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/DuplicateScanner_lib/process.js b/process/DuplicateScanner_lib/process.js index b8f14e5eca..df495ebbd2 100644 --- a/process/DuplicateScanner_lib/process.js +++ b/process/DuplicateScanner_lib/process.js @@ -649,7 +649,7 @@ DuplicateScannerUtils.mergePerson = function(pSourceContactId, pTargetContactId) DuplicateScannerUtils.deleteCachedDuplicate(pSourceContactId); - return ((isLinkedDataUpdated || isParticipantsUpdated) && deletedRows > 0); + return isLinkedDataUpdated || isParticipantsUpdated || deletedRows > 0; } DuplicateScannerUtils.createMergeSuccessActivity = function(pSourceContactId, pTargetContactId, pCurrentContactId, pContext) @@ -1159,7 +1159,7 @@ _DuplicateScannerUtils._migrateLinkedContactData = function (pSourceContactId, p var setStandardsStatements = []; var [standardPhone, standardMail, standardAddressId] = newSelect([ "(" + CommUtil.getStandardSubSqlPhone() + ")", - "(" +CommUtil.getStandardSubSqlMail() + ")", + "(" + CommUtil.getStandardSubSqlMail() + ")", "CONTACT.ADDRESS_ID" ]) .from("CONTACT") -- GitLab