From b4143179af00613a75c502dba633ca791611f020 Mon Sep 17 00:00:00 2001
From: "c.manhart" <c.manhart@adito.de>
Date: Wed, 7 Apr 2021 11:23:42 +0200
Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-ContactManagement][TicketNr.:?=
 =?UTF-8?q?=201078253][Mailbridge=20setzt=20Verantwortlichen=20in=20Aktivi?=
 =?UTF-8?q?t=C3=A4t=20nicht]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 process/IncomingEmailExecutor_lib/process.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/process/IncomingEmailExecutor_lib/process.js b/process/IncomingEmailExecutor_lib/process.js
index 18756c30f4..7697b96daa 100644
--- a/process/IncomingEmailExecutor_lib/process.js
+++ b/process/IncomingEmailExecutor_lib/process.js
@@ -198,10 +198,10 @@ IncomingEmailExecutor.prototype.createActivity = function(pAdditionalLinks)
         directionKeywordId: this.activityData.direction || this.failbackActivityData.direction
     };
     
-    if (vars.get("$sys.isclient")){
+    if (vars.get("$sys.isclient") == "true"){
         activityDataForInsert.responsibleContactId = EmployeeUtils.getCurrentContactId();
     } else {
-        activityDataForInsert.responsibleContactId = this.activityData.employeeContactId || this.failbackActivityData.employeeContactId;
+        activityDataForInsert.responsibleContactId = this.activityData.employeeContactId ? this.activityData.employeeContactId : this.failbackActivityData.employeeContactId;
     }
     
     var activityLinks = this.activityData.links || this.failbackActivityData.links;
-- 
GitLab