aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2023-08-07 10:49:13 -0400
committerJamie McClelland <jm@mayfirst.org>2023-08-07 14:43:23 -0400
commitece685d6f5647c72e9c69340bb83e9f254419818 (patch)
tree3fe065b2ef57426b8d5ed8d104f67b4b24986123 /apps/dav/lib/CalDAV
parentb4a3f8088ab4ccb53c25ee316fe9b575b41b36f8 (diff)
downloadnextcloud-server-ece685d6f5647c72e9c69340bb83e9f254419818.tar.gz
nextcloud-server-ece685d6f5647c72e9c69340bb83e9f254419818.zip
optimize calendar search query
see https://github.com/nextcloud/calendar/issues/4758 Signed-off-by: Jamie McClelland <jm@mayfirst.org>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index a948c54ad58..df206b4ca57 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -1847,7 +1847,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
// only return public items for shared calendars for now
if (isset($calendarInfo['{http://owncloud.org/ns}owner-principal']) === false || $calendarInfo['principaluri'] !== $calendarInfo['{http://owncloud.org/ns}owner-principal']) {
- $innerQuery->andWhere($innerQuery->expr()->eq('c.classification',
+ $outerQuery->andWhere($outerQuery->expr()->eq('c.classification',
$outerQuery->createNamedParameter(self::CLASSIFICATION_PUBLIC)));
}