Skip to content
Snippets Groups Projects
Commit ee62f21a authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

#1058219 Presets get recognized, after user moved or resized an appointment

parent 9208e19d
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,13 @@ if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$para
result.string(vars.get("$this.value"));
else if(event[calendars.DTSTART])
result.string(event[calendars.DTSTART]);
}
/**
* Sets explicitly the start date when a preset is sent from the core, due to a move or resize event from the user. Do not remove.
*/
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT && vars.exists("$param.Entry_param"))
{
var event = JSON.parse(vars.getString("$param.Entry_param"));
result.string(event[calendars.DTSTART]);
}
\ No newline at end of file
......@@ -14,4 +14,13 @@ if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$para
result.string(vars.get("$this.value"));
else if(event[calendars.DTEND])
result.string(event[calendars.DTEND]);
}
/**
* Sets explicitly the end date when a preset is sent from the core, due to a move or resize event from the user. Do not remove.
*/
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT && vars.exists("$param.Entry_param"))
{
var event = JSON.parse(vars.getString("$param.Entry_param"));
result.string(event[calendars.DTEND]);
}
\ 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