Skip to content

Commit

Permalink
Get componenttype from the db as well when restoring a calendarobject
Browse files Browse the repository at this point in the history
It's needed in ReminderService::onCalendarObjectCreate()

Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed May 24, 2021
1 parent 97f042a commit 0492643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,7 @@ public function restoreCalendarObject(array $objectData): void {
// 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();
Expand Down

0 comments on commit 0492643

Please sign in to comment.