mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
Use new function to update client data when moving via DnD
This commit is contained in:
parent
8dfd49db68
commit
837e19ae2c
@ -899,17 +899,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$response = egw_json_response::get();
|
$response = egw_json_response::get();
|
||||||
if($response && $update_type != 'delete')
|
if($response && $update_type != 'delete')
|
||||||
{
|
{
|
||||||
// Directly update stored data. If event is still visible, it will
|
$this->update_client($event['id']);
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = $message . ($msg ? ', ' . $msg : '');
|
$msg = $message . ($msg ? ', ' . $msg : '');
|
||||||
@ -2843,7 +2833,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
if(is_int($conflicts))
|
if(is_int($conflicts))
|
||||||
{
|
{
|
||||||
$event['id'] = $conflicts;
|
$event['id'] = $conflicts;
|
||||||
$response->call('egw.refresh', '','calendar',$event['id'],'add');
|
$response->call('egw.refresh', '','calendar',$event['id'],'edit');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($conflicts)
|
else if ($conflicts)
|
||||||
|
Loading…
Reference in New Issue
Block a user