6.0.0-alpha14
7/2/25

[#9071] Maintenance: purge recurring events finished
Summary Maintenance: purge recurring events finished
Queue Kronolith
Queue Version FRAMEWORK_3
Type Enhancement
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester patrick.abiven (at) apitech (dot) fr
Created 06/02/2010 (5509 days ago)
Due
Updated 06/02/2010 (5509 days ago)
Assigned
Resolved 06/02/2010 (5509 days ago)
Milestone
Patch No

History
06/02/2010 03:55:57 PM Michael Rubinsky Comment #4
Assigned to Michael Rubinsky
State ⇒ Resolved
Version ⇒ FRAMEWORK_3
Reply to this comment
Makes sense to me, committed.

Thanks!
06/02/2010 03:55:02 PM Git Commit Comment #3 Reply to this comment
06/02/2010 03:54:46 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Delete recurring events also, if we are past the last recurrence.
Bug: 9071
Submitted by: patrick.abiven@apitech.fr
http://cvs.horde.org/diff.php/kronolith/lib/Maintenance/Task/purge_events.php?rt=horde&r1=1.1.2.4&r2=1.1.2.5&ty=u
06/02/2010 07:47:10 AM patrick (dot) abiven (at) apitech (dot) fr Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ Maintenance: purge recurring events finished
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
Hello
If we want to purge recurring events whose last occurence was before 
the $del_time, we can add a line in 
kronolith/lib/Maintenance/Tasks/purge_events.php

         foreach ($events as $event) {
             if (!$event->recurs()
+           || $event->recurrence->nextRecurrence($del_time) == false ) {

Regards
Patrick

Saved Queries