Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/fullcalendar/interaction/eventDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ export default function(store, fcAPI) {
return
}

// Reset attendees participation state to NEEDS-ACTION, since eventDrop
// is always a signification change
// Partly a workaround for Sabre-DAV not respecting RFC 6638 3.2.8, see
// https://github.com/sabre-io/dav/issues/1282
if (eventComponent.organizer && eventComponent.hasProperty('ATTENDEE')) {
const organizer = eventComponent.getFirstProperty('ORGANIZER')
for (const attendee of eventComponent.getAttendeeIterator()) {
if (organizer.value !== attendee.value) {
attendee.participationStatus = 'NEEDS-ACTION'
}
}
}

try {
// shiftByDuration may throw exceptions in certain cases
eventComponent.shiftByDuration(deltaDuration, event.allDay, timezone, defaultAllDayDuration, defaultTimedDuration)
Expand Down