Skip to content
Snippets Groups Projects
Commit 8e5502ce authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Merge branch '1065477_FixDeletingFunction' into '2020.2.0'

[Projekt: Entwicklung - Neon][TicketNr.: 1065477][Löschen über "Weitere...

See merge request xrm/basic!427
parents 88cccbfc f9fec277
No related branches found
No related tags found
No related merge requests found
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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment