From e3fdbd0c62173d733681bd1cfe9ed08c25a98ae6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 17 Feb 2016 15:33:34 +0000 Subject: [PATCH] Fix removal missing events --- calendar/inc/class.calendar_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index 38361ab563..be656128f4 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -720,6 +720,8 @@ class calendar_ui */ public function update_client($event_id, egw_time $recurrence_date = null) { + if(!$event_id) return; + // Directly update stored data. // Make sure we have the whole event $event = $this->bo->read($event_id, $recurrence_date); @@ -728,7 +730,7 @@ class calendar_ui if(!$event) { // Sending null will trigger a removal - $response->generic('data', array('uid' => 'calendar::'.$event['row_id'], 'data' => null)); + $response->generic('data', array('uid' => 'calendar::'.$event_id, 'data' => null)); return false; }