Merge pull request #52073 from nextcloud/custom-properties-preload-negative

fix: fix preloading files with no custom properties
pull/52105/head
Robin Appelman 2025-04-10 21:30:22 +07:00 committed by GitHub
commit db078e7a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

@ -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 = [];