Fix deletion of single event occurrences (#4722)
This commit is contained in:
parent
fc4cf15b30
commit
d4f819bf94
1 changed files with 2 additions and 2 deletions
|
@ -519,13 +519,13 @@ class kolab_calendar extends kolab_storage_folder_api
|
||||||
*/
|
*/
|
||||||
public function delete_event($event, $force = true)
|
public function delete_event($event, $force = true)
|
||||||
{
|
{
|
||||||
$deleted = $this->storage->delete($event['id'], $force);
|
$deleted = $this->storage->delete($event['uid'] ?: $event['id'], $force);
|
||||||
|
|
||||||
if (!$deleted) {
|
if (!$deleted) {
|
||||||
rcube::raise_error(array(
|
rcube::raise_error(array(
|
||||||
'code' => 600, 'type' => 'php',
|
'code' => 600, 'type' => 'php',
|
||||||
'file' => __FILE__, 'line' => __LINE__,
|
'file' => __FILE__, 'line' => __LINE__,
|
||||||
'message' => "Error deleting event object from Kolab server"),
|
'message' => sprintf("Error deleting event object '%s' from Kolab server", $event['id'])),
|
||||||
true, false);
|
true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue