mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: convert tag string to array when filtering topic list by tags
This commit is contained in:
@@ -634,6 +634,7 @@ class TopicQuery
|
||||
result = result.preload(:tags)
|
||||
|
||||
if @options[:tags] && @options[:tags].size > 0
|
||||
@options[:tags] = @options[:tags].split unless @options[:tags].respond_to?('each')
|
||||
@options[:tags].each { |t| t.downcase! if t.is_a? String }
|
||||
|
||||
if @options[:match_all_tags]
|
||||
|
Reference in New Issue
Block a user