Skip to content

Commit

Permalink
fixup! WIP: fix Calendar Trashbin
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Feb 7, 2023
1 parent afe0cf8 commit ce7e021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,9 @@ public function createCalendarObject($calendarId, $objectUri, $calendarData, $ca
if ($found !== false) {
// when importing a calendar obejct already previously imported
// we first restore it and then update the event to the new data
$this->restoreCalendarObject($result['calendardata']);
return $this->updateCalendarObject($calendarId, $found['uri'], $calendarData, $calendarType);
$this->restoreCalendarObject($found);
$restoreUri = str_replace('-deleted.ics', '.ics', $found['uri']);
return $this->updateCalendarObject($calendarId, $restoreUri, $calendarData, $calendarType);
}

$query = $this->db->getQueryBuilder();
Expand Down

0 comments on commit ce7e021

Please sign in to comment.