summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Search/ContactsSearchProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Search/ContactsSearchProvider.php')
-rw-r--r--apps/dav/lib/Search/ContactsSearchProvider.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/dav/lib/Search/ContactsSearchProvider.php b/apps/dav/lib/Search/ContactsSearchProvider.php
index 82fa44a7a26..f97ba2cf634 100644
--- a/apps/dav/lib/Search/ContactsSearchProvider.php
+++ b/apps/dav/lib/Search/ContactsSearchProvider.php
@@ -96,8 +96,11 @@ class ContactsSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(string $from): int {
- return 7;
+ public function getOrder(string $route, array $routeParameters): int {
+ if ($route === 'contacts.Page.index') {
+ return -1;
+ }
+ return 20;
}
/**