mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix search limit to home
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bb8ac6ca34
commit
5dba8d318d
1 changed files with 4 additions and 0 deletions
|
|
@ -797,6 +797,10 @@ class Cache implements ICache {
|
|||
$query->andWhere($searchExpr);
|
||||
}
|
||||
|
||||
if ($searchQuery->limitToHome() && ($this instanceof HomeCache)) {
|
||||
$query->andWhere($builder->expr()->like('path', $query->expr()->literal('files/%')));
|
||||
}
|
||||
|
||||
$this->querySearchHelper->addSearchOrdersToQuery($query, $searchQuery->getOrder());
|
||||
|
||||
if ($searchQuery->getLimit()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue