mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
fixed hound
This commit is contained in:
parent
25b99b6570
commit
95da62adde
|
@ -49,7 +49,7 @@ class SearchController < ApplicationController
|
||||||
@search_page = params[:page].to_i || 1
|
@search_page = params[:page].to_i || 1
|
||||||
@display_query = @search_query
|
@display_query = @search_query
|
||||||
# splits the search query to validate all entries
|
# splits the search query to validate all entries
|
||||||
@splited_query = @search_query.split()
|
@splited_query = @search_query.split
|
||||||
|
|
||||||
if @splited_query.first.length < MIN_QUERY_CHARS
|
if @splited_query.first.length < MIN_QUERY_CHARS
|
||||||
flash[:error] = t'search.index.error.query_length', n: MIN_QUERY_CHARS
|
flash[:error] = t'search.index.error.query_length', n: MIN_QUERY_CHARS
|
||||||
|
|
Loading…
Reference in a new issue