diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-10 21:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-10 21:30:22 +0200 |
commit | db078e7a602ca9ea76b5f50fe4ed600931783d16 (patch) | |
tree | 2061016d1b0a07e2b8181bb689a3baca52e31787 | |
parent | 9e0e53707f02c455bb5998130d0556ade7ca298f (diff) | |
parent | 5c66fead676f38411935145fc87316cb56d5edfb (diff) | |
download | nextcloud-server-db078e7a602ca9ea76b5f50fe4ed600931783d16.tar.gz nextcloud-server-db078e7a602ca9ea76b5f50fe4ed600931783d16.zip |
Merge pull request #52073 from nextcloud/custom-properties-preload-negative
fix: fix preloading files with no custom properties
-rw-r--r-- | apps/dav/lib/DAV/CustomPropertiesBackend.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/CustomPropertiesBackend.php b/apps/dav/lib/DAV/CustomPropertiesBackend.php index bc3c146875b..c41ecd8450e 100644 --- a/apps/dav/lib/DAV/CustomPropertiesBackend.php +++ b/apps/dav/lib/DAV/CustomPropertiesBackend.php @@ -350,7 +350,10 @@ class CustomPropertiesBackend implements BackendInterface { )), ) ->where($query->expr()->eq('parent', $query->createNamedParameter($node->getInternalFileId(), IQueryBuilder::PARAM_INT))) - ->andWhere($query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID()))); + ->andWhere($query->expr()->orX( + $query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID())), + $query->expr()->isNull('p.userid'), + )); $result = $query->executeQuery(); $propsByPath = []; |