Skip to content
Snippets Groups Projects
Commit b75139a9 authored by Carolin Wimmer's avatar Carolin Wimmer
Browse files

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.:...

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.: 1066856][Wochenplanung / Wochenplaneintrag]
parent f075f74e
No related branches found
No related tags found
No related merge requests found
......@@ -25,21 +25,8 @@ if(pointOfContact)
links.push([ContactUtils.getContextByContactId(pointOfContact), pointOfContact]);
else
{
var contactId = vars.get("$field.ORGANISATION_CONTACT_ID");
context = ContactUtils.getContextByContactId(contactId);
if(context == 'Person')
{
var orgContactId = newSelect("CONTACTID")
.from("CONTACT")
.where("PERSON_ID is null")
.and("CONTACT.ORGANISATION_ID", newSelect("ORGANISATION_ID")
.from("CONTACT")
.where("CONTACT.CONTACTID", contactId)
.cell()).cell();
if(orgContactId)
links.push(["Organisation", orgContactId]);
}
links.push([context, contactId]);
links.push(["Organisation", vars.get("$field.ORGANISATION_CONTACT_ID")]);
links.push(["Person", vars.get("$field.CONTACT_ID")]);
}
ActivityUtils.createNewActivity(null, links, null, null, null, null, $KeywordRegistry.activityDirection$outgoing(), null, $KeywordRegistry.activityCategory$visit(), vars.get("$field.ENTRYDATE"), vars.get("$field.UID"));
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