From 311ede3878dc1f3850bde95578888aa097dbe7f9 Mon Sep 17 00:00:00 2001
From: "p.neub" <p.neub@adito.de>
Date: Mon, 11 Oct 2021 09:53:31 +0200
Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Sales][TicketNr.:=202001137][An?=
 =?UTF-8?q?forderer=20der=20Salesproject=20vertagt=20Aufgabe=20soll=20der?=
 =?UTF-8?q?=20sein=20der=20gerade=20den=20Status=20ver=C3=A4ndert=20hat]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
index 35e786cfb3..65fcefca0a 100644
--- a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
+++ b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js
@@ -1,3 +1,4 @@
+import("Employee_lib");
 import("MSTeams_lib");
 import("ActivityTask_lib");
 import("system.tools");
@@ -89,7 +90,7 @@ vars.get("$local.changed").forEach(function(fieldName) {
                 var inSixMonths = new Date();
                 inSixMonths = JSON.stringify(inSixMonths.setMonth(inSixMonths.getMonth() +  6));
 
-                TaskUtils.createNewTaskSilent({"requestorContactId": contactId
+                TaskUtils.createNewTaskSilent({"requestorContactId": EmployeeUtils.getCurrentContactId()
                                                 , "editorContactId": contactId
                                                 , "startDate": vars.get("$sys.date")
                                                 , "marturityDate": inSixMonths
-- 
GitLab