diff --git a/entity/Appointment_entity/entityfields/begin/valueProcess.js b/entity/Appointment_entity/entityfields/begin/valueProcess.js index 0ec0da52b21a9bb3169b5447365dda3006449bfb..f87cdc03567024fded757914d9ee6b1587f2a258 100644 --- a/entity/Appointment_entity/entityfields/begin/valueProcess.js +++ b/entity/Appointment_entity/entityfields/begin/valueProcess.js @@ -1,3 +1,4 @@ +import("system.logging"); import("system.neon"); import("system.vars"); import("system.calendars"); @@ -10,6 +11,8 @@ if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$para { var event = JSON.parse(vars.getString("$param.Entry_param")); - if(event[calendars.DTSTART]) + if(vars.get("$this.value")) + result.string(vars.get("$this.value")); + else if(event[calendars.DTSTART]) result.string(event[calendars.DTSTART]); } \ No newline at end of file diff --git a/entity/Appointment_entity/entityfields/end/valueProcess.js b/entity/Appointment_entity/entityfields/end/valueProcess.js index 1276bc19ec272188393c5485613b2fbb779fc5de..284d2d66518b86d3727a04d3ab07ebe1ba250662 100644 --- a/entity/Appointment_entity/entityfields/end/valueProcess.js +++ b/entity/Appointment_entity/entityfields/end/valueProcess.js @@ -1,15 +1,17 @@ -import("system.neon"); -import("system.vars"); -import("system.calendars"); -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")) -{ - var event = JSON.parse(vars.getString("$param.Entry_param")); - - if(event[calendars.DTEND]) - result.string(event[calendars.DTEND]); +import("system.neon"); +import("system.vars"); +import("system.calendars"); +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")) +{ + var event = JSON.parse(vars.getString("$param.Entry_param")); + + if(vars.get("$this.value")) + result.string(vars.get("$this.value")); + else if(event[calendars.DTEND]) + result.string(event[calendars.DTEND]); } \ No newline at end of file