Skip to content
Snippets Groups Projects
Commit fc45406f authored by v.broens's avatar v.broens
Browse files

[Projekt: xRM-Marketing][TicketNr.: 1083938][Div. Fehler in Interessensgebieten]

parent 9a74bec4
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,12 @@ import("Sql_lib");
if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW && vars.get("$local.value") && vars.get("$field.CONTACT_ID"))
{
var isParticipant= newSelect(["INTEREST_ID"])
var interest = newSelect(["INTEREST_ID"])
.from("INTERESTLINK")
.where("INTERESTLINK.INTEREST_ID", vars.get("$field.INTEREST_ID"))
.and("INTERESTLINK.CONTACT_ID",vars.get("$field.CONTACT_ID"))
.cell();
if (isParticipant){
if (interest){
result.string(translate.text("Interest already assign to contact"));
}
}
\ 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