From bc07f7c9cdfab2e18231d5a0e73b929bfba57649 Mon Sep 17 00:00:00 2001 From: "a.schindlbeck" <a.schindlbeck@adito.de> Date: Fri, 31 Jan 2020 10:58:57 +0100 Subject: [PATCH] #1048170 Appointments-Switches work again --- entity/Appointment_entity/entityfields/allday/valueProcess.js | 2 +- .../entityfields/classification/valueProcess.js | 2 +- .../entityfields/transparency/valueProcess.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entity/Appointment_entity/entityfields/allday/valueProcess.js b/entity/Appointment_entity/entityfields/allday/valueProcess.js index 955e531fbe..ff249efb88 100644 --- a/entity/Appointment_entity/entityfields/allday/valueProcess.js +++ b/entity/Appointment_entity/entityfields/allday/valueProcess.js @@ -6,7 +6,7 @@ import("system.result"); /** * Following if() is only for passing param-parts from "new Appointment"-Dialog to AppointmentEditViewTemplate */ -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param")) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param") && vars.get("$this.value") == null) { var event = JSON.parse(vars.getString("$param.Entry_param")); diff --git a/entity/Appointment_entity/entityfields/classification/valueProcess.js b/entity/Appointment_entity/entityfields/classification/valueProcess.js index a4056b8834..10761cbbf5 100644 --- a/entity/Appointment_entity/entityfields/classification/valueProcess.js +++ b/entity/Appointment_entity/entityfields/classification/valueProcess.js @@ -6,7 +6,7 @@ import("system.result"); /** * Following if() is only for passing param-parts from "new Appointment"-Dialog to AppointmentEditViewTemplate */ -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param")) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param") && vars.get("$this.value") == null) { var event = JSON.parse(vars.getString("$param.Entry_param")); diff --git a/entity/Appointment_entity/entityfields/transparency/valueProcess.js b/entity/Appointment_entity/entityfields/transparency/valueProcess.js index 774f704312..8cc418bef0 100644 --- a/entity/Appointment_entity/entityfields/transparency/valueProcess.js +++ b/entity/Appointment_entity/entityfields/transparency/valueProcess.js @@ -6,7 +6,7 @@ import("system.result"); /** * Following if() is only for passing param-parts from "new Appointment"-Dialog to AppointmentEditViewTemplate */ -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param")) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.Entry_param") && vars.get("$this.value") == null) { var event = JSON.parse(vars.getString("$param.Entry_param")); -- GitLab