The signature of the eventDrop/eventResize callback in Calendar.FullCalendar
has changed and now causes the "updateEvent" to sends the updated event data erroneously as:
- deltaDays : is the complete difference in milli-seconds now
- deltaMinutes : contains garbage (actually the string representation of some function)
To get this back to work, the format of request parameters in the updateurl
(for UpdateService service) might need to change, or the code in Macro
To reproduce try something like:
this should show the default blog post and make it "moveable".
Doing so creates an error because:
obviously minuteDelta is garbage and dayDelta=86400000 is not the full days the event has moved, but millis.
(Blog posts are only used here to create a quick setup to create the error.
Even with a fixed update service I do not expect that moving blog posts via the default UpdatService might work, as they do not have a duration field, but that is not the problem here.)
compare with the old version:
This only affects the latest 2.0-SNAPSHOT, not any released version.
See also for a similar code im MoccaCalendar in the fullcal-2-integration branch (the fact that MoccaCal contains somewhat a copy of the FullCal UpdateService is a mistake that needs to be rectified at some time ...)
and the "calendarHelper.updateEvent" used in the eventDrop and eventResize options: