dakrauth / django-swingtime

📆 Event and occurrence scheduling application for Django
https://dakrauth.github.io/django-swingtime/
MIT License
313 stars 99 forks source link

Single occurrence event moves to wrong date #6

Closed brousch closed 9 years ago

brousch commented 9 years ago

We ran into a bug where a single occurrence event for any day of the week other than the current one would be moved to the current day of the week for the week the event was supposed to be created for. The problem is that self.cleaned_data['repeats'] never equals "no", so all event fall through to recurring. The default for recurring is weekly, so the single event is moved to the date as if it was a recurring event. The change uses the correct value for repeats and checks that it is a single occurrence event.

I don't really understand how this bug has not been noticed before as it shows up on any single occurrence event not created for today.

jacebrowning commented 9 years ago

@dakrauth Do you plan to do a bug fix release (v0.4.1) for this?

dakrauth commented 9 years ago

Yes, within the next 24 hours.

dakrauth commented 9 years ago

I've added 2 more releases: v0.4.1, which incorporates this bugfix, and v0.5, which adds some (slightly) more robust testing and various other tweaks. Sorry for the delay, been busy on other projects.

jacebrowning commented 9 years ago

Thanks!