summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2023-08-07 10:49:13 -0400
committerAndy Scherzinger <info@andy-scherzinger.de>2023-08-10 12:54:20 +0200
commit6de2eccb7bc536e524a987ecca53238134b8e7b9 (patch)
tree0183ae1bf14daf720f26dd09a35879f81ab83f04 /apps/dav
parentd97a58dde6c3b2372628fe545807f1c464d9875c (diff)
downloadnextcloud-server-6de2eccb7bc536e524a987ecca53238134b8e7b9.tar.gz
nextcloud-server-6de2eccb7bc536e524a987ecca53238134b8e7b9.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')
-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 1d526d89e6b..e4cc77fedc5 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)));
}