fix: fix preloading files with no custom properties

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/52073/head
Robin Appelman 2025-04-09 15:04:35 +07:00
parent b82245ddea
commit 5c66fead67
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
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 = [];