Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/groups/base.rb')
-rw-r--r--app/finders/groups/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/groups/base.rb b/app/finders/groups/base.rb
index 9d2f9f60a63..26d2ad85fd4 100644
--- a/app/finders/groups/base.rb
+++ b/app/finders/groups/base.rb
@@ -8,10 +8,10 @@ module Groups
items.reorder(Group.arel_table[:path].asc, Group.arel_table[:id].asc) # rubocop: disable CodeReuse/ActiveRecord
end
- def by_search(items)
+ def by_search(items, exact_matches_first: false)
return items if params[:search].blank?
- items.search(params[:search], include_parents: true)
+ items.search(params[:search], include_parents: true, exact_matches_first: exact_matches_first)
end
end
end