From 6b13fbccc212eb06d04fe5027df0a717df887eda Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 13 Mar 2018 17:17:08 -0400 Subject: [PATCH] tag-choosers with everyTag should also be able to get more results --- lib/discourse_tagging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_tagging.rb b/lib/discourse_tagging.rb index 3e71a284a54..7f0cc0a68a7 100644 --- a/lib/discourse_tagging.rb +++ b/lib/discourse_tagging.rb @@ -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