Update personal_books_controller.rb

This commit is contained in:
chiu 2019-08-15 10:21:11 +08:00
parent 6a2ef23e7b
commit 0a95f1e957
1 changed files with 1 additions and 3 deletions

View File

@ -33,7 +33,6 @@ class PersonalBooksController < ApplicationController
search_temp = "book_title"
else
search_temp = params[:selectbox]
trans = params[:selectbox]
end
if page.custom_string_field == "table"
books_show = books_temp.select {|value| search_all_words(value.send(search_temp), params[:keywords])}
@ -111,8 +110,7 @@ class PersonalBooksController < ApplicationController
"url" => "/"+params[:locale]+params[:url],
"select_text" => select_text,
"search_text" => search_text,
"search_value" => params[:keywords],
"trans" => trans},
"search_value" => params[:keywords] },
"headers" => headers,
"total_pages" => books_total_pages,
"choice" => choice