From 2fd00db897506116a62f86d773b75b603eb40045 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 19 Apr 2010 17:48:21 -0400 Subject: [PATCH] Revert "Delete the events that represent exceptions to a recurring event when deleting the recurring event." Eh, better to delete each one individually, as the exceptions may have different resources and/or attendees that need to be dealt with. This reverts commit e6f350ebd53a80bddd2e31352dca86f6c32a31f4. --- kronolith/docs/CHANGES | 2 -- kronolith/lib/Driver/Sql.php | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kronolith/docs/CHANGES b/kronolith/docs/CHANGES index d15391a60..ae9875ddb 100644 --- a/kronolith/docs/CHANGES +++ b/kronolith/docs/CHANGES @@ -2,8 +2,6 @@ v3.0-git -------- -[mjr] Deleting a recurring event now also deletes any exceptions also. -[mjr] Add support for inline maps to the Ajax interface. [jan] Add preference to limit the events per day in the month view. [jan] Add system calendars (Request #2059). [jan] Add URL field to events. diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index 3b2c34189..7f98651a7 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -713,8 +713,8 @@ class Kronolith_Driver_Sql extends Kronolith_Driver /* Fetch the event for later use. */ $event = $this->getEvent($eventId); - $query = 'DELETE FROM ' . $this->_params['table'] . ' WHERE (event_id = ? OR event_baseid = ?) AND calendar_id = ?'; - $values = array($eventId, $event->uid, $this->calendar); + $query = 'DELETE FROM ' . $this->_params['table'] . ' WHERE event_id = ? AND calendar_id = ?'; + $values = array($eventId, $this->calendar); /* Log the query at a DEBUG log level. */ Horde::logMessage(sprintf('Kronolith_Driver_Sql::deleteEvent(): user = "%s"; query = "%s"; values = "%s"', -- 2.11.0