Skip to content

Commit aec12dc

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: fix preloading files with no custom properties
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 8c428e2 commit aec12dc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)