FIX: Search by topic_id should not be restricted by SiteSetting.min_search_term_length.

This commit is contained in:
Guo Xiang Tan
2017-07-26 09:51:44 +09:00
parent 96267f0845
commit e3ac6585bd
3 changed files with 39 additions and 21 deletions

View File

@@ -52,7 +52,8 @@ class SearchController < ApplicationController
search_args[:include_blurbs] = params[:include_blurbs] == "true" if params[:include_blurbs].present?
search_args[:search_for_id] = true if params[:search_for_id].present?
context,type = lookup_search_context
context, type = lookup_search_context
if context
search_args[:search_context] = context
search_args[:type_filter] = type if type