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>
This commit is contained in:
parent
d6d8e9215c
commit
8a73b180e7
|
@ -1523,6 +1523,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
// Make sure this change is tracked in the changes table
|
// Make sure this change is tracked in the changes table
|
||||||
$qb2 = $this->db->getQueryBuilder();
|
$qb2 = $this->db->getQueryBuilder();
|
||||||
$selectObject = $qb2->select('calendardata', 'uri', 'calendarid', 'calendartype')
|
$selectObject = $qb2->select('calendardata', 'uri', 'calendarid', 'calendartype')
|
||||||
|
->selectAlias('componenttype', 'component')
|
||||||
->from('calendarobjects')
|
->from('calendarobjects')
|
||||||
->where($qb2->expr()->eq('id', $qb2->createNamedParameter($id, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT));
|
->where($qb2->expr()->eq('id', $qb2->createNamedParameter($id, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT));
|
||||||
$result = $selectObject->executeQuery();
|
$result = $selectObject->executeQuery();
|
||||||
|
|
Loading…
Reference in New Issue