diff options
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Search/ContactsSearchProvider.php | 7 | ||||
-rw-r--r-- | apps/dav/lib/Search/EventsSearchProvider.php | 5 | ||||
-rw-r--r-- | apps/dav/lib/Search/TasksSearchProvider.php | 5 |
3 files changed, 13 insertions, 4 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; } /** diff --git a/apps/dav/lib/Search/EventsSearchProvider.php b/apps/dav/lib/Search/EventsSearchProvider.php index c9ce11a297d..619775aa193 100644 --- a/apps/dav/lib/Search/EventsSearchProvider.php +++ b/apps/dav/lib/Search/EventsSearchProvider.php @@ -82,7 +82,10 @@ class EventsSearchProvider extends ACalendarSearchProvider { /** * @inheritDoc */ - public function getOrder(string $from): int { + public function getOrder(string $route, array $routeParameters): int { + if ($route === 'calendar.View.index') { + return -1; + } return 10; } diff --git a/apps/dav/lib/Search/TasksSearchProvider.php b/apps/dav/lib/Search/TasksSearchProvider.php index 6c07cfd00f3..adc1197aa18 100644 --- a/apps/dav/lib/Search/TasksSearchProvider.php +++ b/apps/dav/lib/Search/TasksSearchProvider.php @@ -74,7 +74,10 @@ class TasksSearchProvider extends ACalendarSearchProvider { /** * @inheritDoc */ - public function getOrder(string $from): int { + public function getOrder(string $route, array $routeParameters): int { + if ($route === 'tasks.Page.index') { + return -1; + } return 10; } |