fix: fix preloading files with no custom properties

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2025-04-09 15:04:35 +02:00 committed by Andy Scherzinger
parent a6cc47a897
commit e436f87496

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