diff --git a/app/controllers/tag_controller.rb b/app/controllers/tag_controller.rb index 1d0f10f2ef..053c8d8e57 100644 --- a/app/controllers/tag_controller.rb +++ b/app/controllers/tag_controller.rb @@ -129,7 +129,7 @@ def show end end - @qids = Node.questions.where(status: 1) + @qids = Node.questions.where(status: 1).where('term_data.name LIKE ?', "question:#{params[:id]}") .collect(&:nid) if @qids.empty? @notes = nodes