mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 21:20:08 +08:00
Fix bug in counting search results for assets [SCI-1284]
This commit is contained in:
parent
f6bd39ec70
commit
f28df506f9
1 changed files with 8 additions and 1 deletions
|
@ -96,7 +96,14 @@ class SearchController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def count_by_name(model)
|
def count_by_name(model)
|
||||||
search_by_name(model).limit(nil).offset(nil).size
|
model.search(current_user,
|
||||||
|
true,
|
||||||
|
@search_query,
|
||||||
|
Constants::SEARCH_NO_LIMIT,
|
||||||
|
nil,
|
||||||
|
match_case: @search_case,
|
||||||
|
whole_word: @search_whole_word,
|
||||||
|
whole_phrase: @search_whole_phrase).size
|
||||||
end
|
end
|
||||||
|
|
||||||
def count_search_results
|
def count_search_results
|
||||||
|
|
Loading…
Reference in a new issue