Skip to content

Commit eec206f

Browse files
author
Jonas Heinrich
committed
Reset attendees participation on eventDrop
Signed-off-by: Jonas Heinrich <heinrich@synyx.de>
1 parent d9c2322 commit eec206f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/fullcalendar/interaction/eventDrop.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ export default function(store, fcAPI) {
6868
return
6969
}
7070

71+
// Reset attendees participation state to NEEDS-ACTION, since eventDrop
72+
// is always a signification change
73+
// Partly a workaround for Sabre-DAV not respecting RFC 6638 3.2.8, see
74+
// https://github.com/sabre-io/dav/issues/1282
75+
const organizer = eventComponent.getFirstProperty('ORGANIZER')
76+
for (const attendee of eventComponent.getAttendeeIterator()) {
77+
if (organizer.value !== attendee.value) {
78+
attendee.participationStatus = 'NEEDS-ACTION'
79+
}
80+
}
81+
7182
try {
7283
// shiftByDuration may throw exceptions in certain cases
7384
eventComponent.shiftByDuration(deltaDuration, event.allDay, timezone, defaultAllDayDuration, defaultTimedDuration)

0 commit comments

Comments
 (0)