Skip to content

Commit 9f87bab

Browse files
icewind1991solracsf
authored andcommitted
fix: fix preloading files with no custom properties
Signed-off-by: Robin Appelman <[email protected]>
1 parent 3a699c6 commit 9f87bab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/dav/lib/DAV/CustomPropertiesBackend.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ private function cacheDirectory(string $path, Directory $node): void {
373373
)),
374374
)
375375
->where($query->expr()->eq('parent', $query->createNamedParameter($node->getInternalFileId(), IQueryBuilder::PARAM_INT)))
376-
->andWhere($query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID())));
376+
->andWhere($query->expr()->orX(
377+
$query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID())),
378+
$query->expr()->isNull('p.userid'),
379+
));
377380
$result = $query->executeQuery();
378381

379382
$propsByPath = [];

0 commit comments

Comments
 (0)