mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
Fix empty result name issue (#1812)
This commit is contained in:
parent
3681df7b9f
commit
94b220172d
1 changed files with 1 additions and 1 deletions
|
@ -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