From 8a73b180e7dad705db4683d5658e63422119e935 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 24 May 2021 15:32:36 +0200 Subject: [PATCH] Get componenttype from the db as well when restoring a calendarobject It's needed in ReminderService::onCalendarObjectCreate() Signed-off-by: Thomas Citharel --- apps/dav/lib/CalDAV/CalDavBackend.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 53749855b8..d278719190 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1523,6 +1523,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription // Make sure this change is tracked in the changes table $qb2 = $this->db->getQueryBuilder(); $selectObject = $qb2->select('calendardata', 'uri', 'calendarid', 'calendartype') + ->selectAlias('componenttype', 'component') ->from('calendarobjects') ->where($qb2->expr()->eq('id', $qb2->createNamedParameter($id, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT)); $result = $selectObject->executeQuery();