From 837e19ae2caa4fd676477191b8a41417a3069bd4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 Jan 2016 23:24:42 +0000 Subject: [PATCH] Use new function to update client data when moving via DnD --- calendar/inc/class.calendar_uiforms.inc.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 084178a86e..8b7d73725a 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -899,17 +899,7 @@ class calendar_uiforms extends calendar_ui $response = egw_json_response::get(); if($response && $update_type != 'delete') { - // Directly update stored data. If event is still visible, it will - // be notified & update itself. - if(!$old_event) - { - // For new events, make sure we have the whole event, not just form data - $event = $this->bo->read($event['id']); - } - // Copy, so as to not change things for subsequent processing - $converted = $event; - $this->to_client($converted); - $response->call('egw.dataStoreUID','calendar::'.$converted['id'],$converted); + $this->update_client($event['id']); } $msg = $message . ($msg ? ', ' . $msg : ''); @@ -2843,7 +2833,7 @@ class calendar_uiforms extends calendar_ui if(is_int($conflicts)) { $event['id'] = $conflicts; - $response->call('egw.refresh', '','calendar',$event['id'],'add'); + $response->call('egw.refresh', '','calendar',$event['id'],'edit'); } } else if ($conflicts)