From 081ffa7051d56cca01097ceb5d1a45e282b73057 Mon Sep 17 00:00:00 2001
From: Daniel Tran <d.tran@adito.de>
Date: Wed, 24 Nov 2021 13:34:00 +0100
Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-ContactManagement][TicketNr.:?=
 =?UTF-8?q?=202002356][Leadimport=5Flib=20fehlerhaft:=20falsche=20Spalte?=
 =?UTF-8?q?=20f=C3=BCr=20where=20Condition]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/process/Leadimport_lib/process.js b/process/Leadimport_lib/process.js
index f92149a937..38cf8c564a 100644
--- a/process/Leadimport_lib/process.js
+++ b/process/Leadimport_lib/process.js
@@ -936,7 +936,7 @@ LeadImportUtils.scanLeadDups = function(pAllContactData)
        
         updDupVals = [dupStatus];
     
-        toUpdate.push([dupUpdateLeadTable, ["DUPSTATUS"], null, updDupVals, newWhere([dupUpdateLeadTable, "LEADID"], leadID).build()]);
+        toUpdate.push([dupUpdateLeadTable, ["DUPSTATUS"], null, updDupVals, newWhere([dupUpdateLeadTable, "LEADSID"], leadID).build()]);
     }
     db.updates(toUpdate);//update Leads with the new status
 }
-- 
GitLab