Merge pull request #18314 from nextcloud/fixFileIdSearch

Fix ambigious fileID on search
This commit is contained in:
Roeland Jago Douma 2019-12-10 11:28:40 +01:00 committed by GitHub
commit 4fad9e4e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -161,6 +161,8 @@ class QuerySearchHelper {
$value = self::TAG_FAVORITE;
} else if ($field === 'tagname') {
$field = 'tag.category';
} else if ($field === 'fileid') {
$field = 'file.fileid';
}
return [$field, $value, $type];
}