tag-choosers with everyTag should also be able to get more results

This commit is contained in:
Neil Lalonde 2018-03-13 17:17:08 -04:00
parent 58508e553d
commit 6b13fbccc2

View File

@ -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