Hi,
when I check if the slot is available in onActionBegin for an existing event from the editor, isSlotAvailable() returns true.
If I programmatically change the event and call saveEvent(data), the same function with the same parameters returns false in onActionBegin:
console.log(data.StartTime, typeof(data.StartTime), data.EndTime, groupIndex, typeof(groupIndex),
getScheduleObject().isSlotAvailable(data.StartTime, data.EndTime, groupIndex));
Through the Editor:
Wed Mar 20 2019 08:00:00 GMT+0000 (Greenwich Mean Time), Wed Mar 20 2019 10:00:00 GMT+0000 (Greenwich Mean Time), 1, true
Through saveEvent()
Wed Mar 20 2019 08:00:00 GMT+0000 (Greenwich Mean Time), Wed Mar 20 2019 10:00:00 GMT+0000 (Greenwich Mean Time), 1, false
e.g.
getScheduleObject().getEvents()[0].Subject = "Some Changed Subject here" // << (Event exists!)
getScheduleObject().saveEvent(getScheduleObject().getEvents()[0])
Editing the same event through the editor (making the same change, e.g .to the Subject), works fine.
Could you please point me towards my error?
Thanks!