From f9fec277b5aaf1436ece69f00f94ae7588e200be Mon Sep 17 00:00:00 2001 From: "b.ulrich" <b.ulrich@adito.de> Date: Mon, 5 Oct 2020 08:53:35 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?= =?UTF-8?q?=201065477][L=C3=B6schen=20=C3=BCber=20"Weitere=20Funktionen"?= =?UTF-8?q?=20l=C3=B6scht=20nicht=20alle=20Daten]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entity/Contact_entity/recordcontainers/db/onDBDelete.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entity/Contact_entity/recordcontainers/db/onDBDelete.js b/entity/Contact_entity/recordcontainers/db/onDBDelete.js index aed5eceb442..61afa46ba95 100644 --- a/entity/Contact_entity/recordcontainers/db/onDBDelete.js +++ b/entity/Contact_entity/recordcontainers/db/onDBDelete.js @@ -1,5 +1,4 @@ import("Sql_lib"); -import("Context_lib"); import("Attribute_lib"); import("Workflow_lib"); import("system.vars"); @@ -8,7 +7,7 @@ import("DuplicateScanner_lib"); var contactId = vars.get("$field.CONTACTID"); DuplicateScannerUtils.deleteCachedDuplicate(contactId); -new AttributeRelationQuery(contactId, null, ContextUtils.getCurrentContextId()) +new AttributeRelationQuery(contactId, null, "Person") .deleteAllAttributes(); newWhere("COMMUNICATION.CONTACT_ID", contactId).deleteData(); -- GitLab