[Tickets #1503] Recurring events when I delete a recurrence ALWAYS create an exception.

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Mar 29 00:52:58 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1503
-----------------------------------------------------------------------
 Ticket             | 1503
 Updated By         | scalero at datadec.es
 Summary            | Recurring events when I delete a recurrence ALWAYS create an exception.
 Queue              | Kronolith
 Version            | 2.0.2
 State              | Feedback
 Priority           | 1. Low
 Type               | Bug
 Owners             | Chuck Hagenbuch
-----------------------------------------------------------------------


scalero at datadec.es (2005-03-29 00:52) wrote:

OK you can remove the event directly in the 'future' case like this:

diff  deleventaction.php

line 38

<             $event->addException(Util::getFormData('year'),
<                                  Util::getFormData('month'),
<                                  Util::getFormData('mday'));
---
>             if (mktime(0, 0, 0, $event->start->month, $event->start->mday,
$event->start->year) ==
>                 mktime(0, 0, 0, Util::getFormData('month'),
Util::getFormData('mday'), Util::getFormData('year'))) {
>                 $kronolith->deleteEvent($event->getID());
>             } else
>                 $event->save();


line 49

<         if ($event->hasRecurType(KRONOLITH_RECUR_NONE) ||
Util::getFormData('all') || !$event->hasActiveRecurrence()) {
---
>         if (isset($event) && ($event->hasRecurType(KRONOLITH_RECUR_NONE)
|| Util::getFormData('all') || !$event->hasActiveRecurrence())) {



Sebastian Calero.




More information about the bugs mailing list