Skip to content

Commit

Permalink
Merge pull request #37812 from nextcloud/backport/stable26-fix-event-…
Browse files Browse the repository at this point in the history
…moving

[stable26] fix event move issue
  • Loading branch information
blizzz authored Apr 20, 2023
2 parents e7377a4 + 8e8a660 commit e141530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1361,8 +1361,8 @@ public function moveCalendarObject(int $sourceCalendarId, int $targetCalendarId,
$this->purgeProperties($sourceCalendarId, $objectId);
$this->updateProperties($targetCalendarId, $object['uri'], $object['calendardata'], $calendarType);

$this->addChange($sourceCalendarId, $object['uri'], 1, $calendarType);
$this->addChange($targetCalendarId, $object['uri'], 3, $calendarType);
$this->addChange($sourceCalendarId, $object['uri'], 3, $calendarType);
$this->addChange($targetCalendarId, $object['uri'], 1, $calendarType);

$object = $this->getCalendarObjectById($newPrincipalUri, $objectId);
// Calendar Object wasn't found - possibly because it was deleted in the meantime by a different client
Expand Down

0 comments on commit e141530

Please sign in to comment.