Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#121 Marking a recurring ToDo appointment as done deletes the item even when the date is random

api-only
nobody
None
Defect
7
Windows 7 Professional 64-bit
1.7.7
2013-04-07
2013-03-30
Azhar Iqbal
No

Summary:

Marking a recurring ToDo appointment as done deletes the item even when the date is random.

Environment:


This is a code issue, therefore is not isolated to any specific OS.

Priority:


Low

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.

Possible fixes:

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.

1 Attachments

Discussion

  • Mike Berger
    Mike Berger
    2013-04-07

    • status: open --> api-only