diff options
author | Thomas Citharel <tcit@tcit.fr> | 2021-05-24 15:32:36 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-31 07:49:19 +0200 |
commit | 8a73b180e7dad705db4683d5658e63422119e935 (patch) | |
tree | d7de4315d15622155146018f298c1cbd034e436c /apps/dav/lib/CalDAV | |
parent | d6d8e9215c69a9e8d4bfa2035c657b0a037f3a2f (diff) | |
download | nextcloud-server-8a73b180e7dad705db4683d5658e63422119e935.tar.gz nextcloud-server-8a73b180e7dad705db4683d5658e63422119e935.zip |
Get componenttype from the db as well when restoring a calendarobject
It's needed in ReminderService::onCalendarObjectCreate()
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 53749855b8c..d278719190b 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(); |