diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-06-24 18:43:54 +0000 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-06-24 18:43:54 +0000 |
commit | 2b327c1b4ddde98719eca2b0e8edab8d9079f2f2 (patch) | |
tree | 913f7db0f9925fa6f2407d5aaf3149f1391dd772 /app | |
parent | a949cc3518bc97997cebbb586eddf98270126262 (diff) | |
parent | f928c22ff0952cd6a358ae0102aa45c58c2478aa (diff) | |
download | gitlab-ce-2b327c1b4ddde98719eca2b0e8edab8d9079f2f2.tar.gz |
Merge branch '63656-runner-tags-search-dropdown-is-empty' into 'master'
Resolve "Runner tags search dropdown is empty"
Closes #63656
See merge request gitlab-org/gitlab-ce!29985
Diffstat (limited to 'app')
-rw-r--r-- | app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb b/app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb index f38c187799c..78a17312e26 100644 --- a/app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb +++ b/app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb @@ -22,8 +22,7 @@ module Autocomplete end def filter_by_name(tags) - return tags unless search - return tags.none if search.empty? + return tags unless search.present? if search.length >= Gitlab::SQL::Pattern::MIN_CHARS_FOR_PARTIAL_MATCHING tags.named_like(search) |