Menu

#2729 Bug : deleting edited recurrences

Security_Hole
open
5
2015-05-05
2015-05-05
Hamdi_C
No

(WebCalendar version 1.2.7)

after creating a repeating event, and then for example editing 3 recurrences separately (Edit entry for this date), and then deleting the original Event (Delete repeating event for all dates):
not all child_events (edited events) were deleted, only the first one.

[Solved]
In del_entry.php:
i noticed that a variable $cnt is used twice in a for-loop (line 202) and in its parent for-loop (line 193). I think this is causing the bug, where not all ex_events are marked as deleted ('D') in webcal_entry_user. I renamed the variable $cnt (line 202) to $cnt2, the programm is working as intended (all child-events were marked as deleted).

The Question is: i am not sure, what's the right procedure:
- treating the child-events as the parent-Event and deleting them as well
- treating the child-events as separate events and not deleting them

Discussion


Log in to post a comment.