Update personal_books_controller.rb
This commit is contained in:
parent
4a9213d5ad
commit
e6bcd9af37
|
@ -33,6 +33,7 @@ class PersonalBooksController < ApplicationController
|
||||||
search_temp = "book_title"
|
search_temp = "book_title"
|
||||||
else
|
else
|
||||||
search_temp = params[:selectbox]
|
search_temp = params[:selectbox]
|
||||||
|
trans = params[:selectbox]
|
||||||
end
|
end
|
||||||
if page.custom_string_field == "table"
|
if page.custom_string_field == "table"
|
||||||
books_show = books_temp.select {|value| search_all_words(value.send(search_temp), params[:keywords])}
|
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],
|
"url" => "/"+params[:locale]+params[:url],
|
||||||
"select_text" => select_text,
|
"select_text" => select_text,
|
||||||
"search_text" => search_text,
|
"search_text" => search_text,
|
||||||
"search_value" => params[:keywords]},
|
"search_value" => params[:keywords],
|
||||||
|
"trans" => trans},
|
||||||
"headers" => headers,
|
"headers" => headers,
|
||||||
"total_pages" => books_total_pages,
|
"total_pages" => books_total_pages,
|
||||||
"choice" => choice
|
"choice" => choice
|
||||||
|
|
Loading…
Reference in New Issue