Skip to content
Snippets Groups Projects
Commit d05018a5 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

fix communication

parent a6025be2
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import("StandardObject_lib");
var rowdata = vars.get("$local.rowdata");
new StandardObject("Communication", vars.get("$local.uid"), "Person", rowdata["COMMUNICATION.CONTACT_ID"])
.onCommunicationInsert(rowdata["COMMUNICATION.MEDIUM_ID"]);
var standard = new StandardObject("Communication", vars.get("$local.uid"), "Person", rowdata["COMMUNICATION.CONTACT_ID"])
standard.onCommunicationInsert(rowdata["COMMUNICATION.MEDIUM_ID"]);
DataPrivacyUtils.notifyNeedDataPrivacyUpdate(rowdata["COMMUNICATION.CONTACT_ID"], vars.get("$param.ShowDsgvoMessage_param"));
\ No newline at end of file
......@@ -4,7 +4,10 @@ import("StandardObject_lib");
var rowdata = vars.get("$local.rowdata");
new StandardObject("Communication", vars.get("$local.uid"), "Person", rowdata["COMMUNICATION.CONTACT_ID"])
.onCommunicationUpdate(rowdata["COMMUNICATION.MEDIUM_ID"]);
if (rowdata["COMMUNICATION.CONTACT_ID"] != null)
{
var standard = new StandardObject("Communication", vars.get("$local.uid"), "Person", rowdata["COMMUNICATION.CONTACT_ID"])
standard.onCommunicationUpdate(rowdata["COMMUNICATION.MEDIUM_ID"]);
}
DataPrivacyUtils.notifyNeedDataPrivacyUpdate(rowdata["COMMUNICATION.CONTACT_ID"], vars.get("$param.ShowDsgvoMessage_param"));
\ No newline at end of file
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