mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 10:19:45 -05:00
Merge pull request #52102 from nextcloud/backport/52073/stable30
[stable30] fix: fix preloading files with no custom properties
This commit is contained in:
commit
88984ac114
1 changed files with 4 additions and 1 deletions
|
|
@ -373,7 +373,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 = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue