Use new function to update client data when moving via DnD

This commit is contained in:
Nathan Gray 2016-01-25 23:24:42 +00:00
parent 8dfd49db68
commit 837e19ae2c

View File

@ -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)