]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix array to string conversion on event search 23207/head
authorJoas Schilling <coding@schilljs.com>
Thu, 24 Sep 2020 11:52:24 +0000 (13:52 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 5 Oct 2020 21:07:05 +0000 (21:07 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/CalDAV/CalDavBackend.php

index d0f88195e58a746bce327c8183444c30b2b249af..913261287216df49ab67d608f0a57cb3bc1b2f20 100644 (file)
@@ -1780,7 +1780,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
                foreach ($searchParameters as $property => $parameter) {
                        $parameterAnd = $calendarObjectIdQuery->expr()->andX();
                        $parameterAnd->add($calendarObjectIdQuery->expr()->eq('cob.name', $calendarObjectIdQuery->createNamedParameter($property, IQueryBuilder::PARAM_STR)));
-                       $parameterAnd->add($calendarObjectIdQuery->expr()->eq('cob.parameter', $calendarObjectIdQuery->createNamedParameter($parameter, IQueryBuilder::PARAM_STR)));
+                       $parameterAnd->add($calendarObjectIdQuery->expr()->eq('cob.parameter', $calendarObjectIdQuery->createNamedParameter($parameter, IQueryBuilder::PARAM_STR_ARRAY)));
 
                        $searchOr->add($parameterAnd);
                }