From e6bcd9af3761930f70471000b610f596f5c2197a Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 15 Aug 2019 10:14:56 +0800 Subject: [PATCH] Update personal_books_controller.rb --- app/controllers/personal_books_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/personal_books_controller.rb b/app/controllers/personal_books_controller.rb index cc77b5e..608ac4a 100644 --- a/app/controllers/personal_books_controller.rb +++ b/app/controllers/personal_books_controller.rb @@ -33,6 +33,7 @@ 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])} @@ -110,7 +111,8 @@ class PersonalBooksController < ApplicationController "url" => "/"+params[:locale]+params[:url], "select_text" => select_text, "search_text" => search_text, - "search_value" => params[:keywords]}, + "search_value" => params[:keywords], + "trans" => trans}, "headers" => headers, "total_pages" => books_total_pages, "choice" => choice