Skip to content

Commit 4fad9e4

Browse files
authored
Merge pull request #18314 from nextcloud/fixFileIdSearch
Fix ambigious fileID on search
2 parents c18f096 + 41cb214 commit 4fad9e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Files/Cache/QuerySearchHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ private function getOperatorFieldAndValue(ISearchComparison $operator) {
161161
$value = self::TAG_FAVORITE;
162162
} else if ($field === 'tagname') {
163163
$field = 'tag.category';
164+
} else if ($field === 'fileid') {
165+
$field = 'file.fileid';
164166
}
165167
return [$field, $value, $type];
166168
}

0 commit comments

Comments
 (0)