Merge pull request #52101 from nextcloud/backport/52073/stable31

[stable31] fix: fix preloading files with no custom properties
This commit is contained in:
Andy Scherzinger 2025-04-24 19:10:41 +02:00 committed by GitHub
commit 00dc876dc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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