diff --git a/app/controllers/global_activities_controller.rb b/app/controllers/global_activities_controller.rb index 4a6619966..f2a664253 100644 --- a/app/controllers/global_activities_controller.rb +++ b/app/controllers/global_activities_controller.rb @@ -105,7 +105,7 @@ class GlobalActivitiesController < ApplicationController subject_types.each do |subject| matched = subject.constantize .search_by_name(current_user, teams, query, whole_phrase: true) - .where.not(name: nil) + .where.not(name: nil).where.not(name: '') .filter_by_teams(filter_teams) .limit(Constants::SEARCH_LIMIT) .pluck(:id, :name)