Fix search limit to home
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bb8ac6ca34
commit
5dba8d318d
|
@ -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 New Issue