diff --git a/app/controllers/global_activities_controller.rb b/app/controllers/global_activities_controller.rb index de7513698..7f145b5d2 100644 --- a/app/controllers/global_activities_controller.rb +++ b/app/controllers/global_activities_controller.rb @@ -52,7 +52,7 @@ class GlobalActivitiesController < ApplicationController results = {} subject_types.each do |subject| matched = subject.constantize - .search_by_name(current_user, teams, query) + .search_by_name(current_user, teams, query, whole_phrase: true) .limit(Constants::SEARCH_LIMIT) .pluck(:id, :name) next if matched.length.zero?