Re-scheduling mode not always applied correctly

There seems to be a bug with setting the recurrence mode of an item - see this comment on GitHub.

Edited by Martin Hoeher