diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-31 14:58:48 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-31 14:58:48 +0100 |
commit | 25aad121e621f0a6975cd6982c11578e372abec2 (patch) | |
tree | 0fdbaf1af7f1d83d25efe89cb291598573833304 /core | |
parent | 582d2d36ee9cdbde891000608ff5f68f1efcfda8 (diff) | |
download | nextcloud-server-25aad121e621f0a6975cd6982c11578e372abec2.tar.gz nextcloud-server-25aad121e621f0a6975cd6982c11578e372abec2.zip |
meanwhile we can have exact matches. also show those.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/AutoCompleteController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/AutoCompleteController.php b/core/Controller/AutoCompleteController.php index 1ed326fb3ef..2e01f85c639 100644 --- a/core/Controller/AutoCompleteController.php +++ b/core/Controller/AutoCompleteController.php @@ -69,8 +69,9 @@ class AutoCompleteController extends Controller { // result from search() – thus nothing else to do here. list($results,) = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0); - // there won't be exact matches without a search string + $exactMatches = $results['exact']; unset($results['exact']); + $results = array_merge_recursive($exactMatches, $results); $sorters = array_reverse(explode('|', $sorter)); $this->autoCompleteManager->runSorters($sorters, $results, [ |