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) : []
|
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)
|
query = query.where('tags.id NOT IN (?)', selected_tag_ids)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue