Marking a recurring ToDo appointment as done deletes the item even when the date is random.
This is a code issue, therefore is not isolated to any specific OS.
Detailed description of problem:
Calling the do_todo method on a recurring appointment with the del flag set to true, and a random date, deletes the todo appointment.
Read the 'Steps to reproduce' section to get a clearer understanding of the bug.
Steps to reproduce:
-Create a daily recurring to-do appointment from April 1, 2013 to April 5, 2013
-add it to the database
-call the do_todo() with a date of April 6, 2013 and the del flag marked as true - This will delete the appointment
Run the attached JUnit test class to get reproduce the error easily.
While marking a recurring todo appointment to done with the del flag marked true, make sure that the date you are deleting is part of the scope of the object. If it is not, do not delete the appointment.