mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
tag-choosers with everyTag should also be able to get more results
This commit is contained in:
parent
58508e553d
commit
6b13fbccc2
@ -67,7 +67,7 @@ module DiscourseTagging
|
||||
|
||||
selected_tag_ids = opts[:selected_tags] ? Tag.where(name: opts[:selected_tags]).pluck(:id) : []
|
||||
|
||||
if opts[:for_input] && !selected_tag_ids.empty?
|
||||
if !opts[:for_topic] && !selected_tag_ids.empty?
|
||||
query = query.where('tags.id NOT IN (?)', selected_tag_ids)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user