From 77fa3d75564f91c6c7f4e91fe722116d6a085e4a Mon Sep 17 00:00:00 2001 From: Maximilian Martin Date: Fri, 3 Mar 2023 16:02:44 -0500 Subject: [PATCH] fix event move issue Signed-off-by: Maximilian Martin Signed-off-by: Thomas Citharel --- apps/dav/lib/CalDAV/CalDavBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index b38858976fffb..f5a502c58f34f 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1374,8 +1374,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