mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Fix empty result name issue (#1812)
This commit is contained in:
parent
3681df7b9f
commit
94b220172d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue