From fc45406faf13c7dee79f5179347e00aab42e6041 Mon Sep 17 00:00:00 2001 From: "v.broens" <v.broens@VBROENS.aditosoftware.local> Date: Mon, 12 Jul 2021 11:07:25 +0200 Subject: [PATCH] [Projekt: xRM-Marketing][TicketNr.: 1083938][Div. Fehler in Interessensgebieten] --- .../entityfields/interest_id/onValidation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/InterestLink_entity/entityfields/interest_id/onValidation.js b/entity/InterestLink_entity/entityfields/interest_id/onValidation.js index 834f73d133..8688ac8a3b 100644 --- a/entity/InterestLink_entity/entityfields/interest_id/onValidation.js +++ b/entity/InterestLink_entity/entityfields/interest_id/onValidation.js @@ -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 -- GitLab