Skip to content

Commit 88984ac

Browse files
authored
Merge pull request #52102 from nextcloud/backport/52073/stable30
[stable30] fix: fix preloading files with no custom properties
2 parents dd9390d + 9f87bab commit 88984ac

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)