From 65e9711fc00aa1c7986d083a5d902314b96d4907 Mon Sep 17 00:00:00 2001
From: Benjamin Ulrich <b.ulrich@adito.de>
Date: Tue, 11 Feb 2020 11:20:50 +0100
Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?=
 =?UTF-8?q?=201047858][DSGVO:=20Zustimmung=20bei=20Eintrag=20der=20E-Mail?=
 =?UTF-8?q?=20=C3=BCber=20UnlinkedMails]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../recordcontainers/jdito/onInsert.js           | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/onInsert.js b/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/onInsert.js
index 9e1560a292a..80412b871ce 100644
--- a/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/onInsert.js
+++ b/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/onInsert.js
@@ -1,9 +1,9 @@
-import("system.datetime");
+import("system.util");
+import("Sql_lib");
+import("system.db");
+import("DataPrivacy_lib");
+import("system.vars");
 
-/* In this process here basically nothing happens because everything is done within the UnlinkedMailMappingWrapper.
- * To make the UnlinkedMailMappingLink_entity NOT read only we've to specify some code (comments excluded). This seems (and IS) odd but it's currenty
- * the only way to do the job
- * If you wan't more information about the entity and why it exists like this: See the documentation of the entity.
- * 
- * Tl;dr; do not remove the following line: */
-datetime.date();
\ No newline at end of file
+var rowdata = vars.get("$local.rowdata")
+var contactId = rowdata["CONTACT_ID.value"]
+DataPrivacyUtils.notifyNeedDataPrivacyUpdate(contactId);
\ No newline at end of file
-- 
GitLab