summaryrefslogtreecommitdiffstats
path: root/module/api/FileApi.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/api/FileApi.py')
-rw-r--r--module/api/FileApi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/api/FileApi.py b/module/api/FileApi.py
index 8f09f3cb7..a5d5a8535 100644
--- a/module/api/FileApi.py
+++ b/module/api/FileApi.py
@@ -80,7 +80,7 @@ class FileApi(ApiComponent):
@RequirePerm(Permission.All)
def searchSuggestions(self, pattern):
- names = self.core.db.getMatchingFilenames(pattern, self.userHandle)
+ names = self.core.db.getMatchingFilenames(pattern, self.primaryUID)
# TODO: stemming and reducing the names to provide better suggestions
return uniqify(names)