Update personal_patents_controller.rb

fix error
This commit is contained in:
chiu 2019-08-16 09:42:38 +08:00
parent dda9a8842a
commit f389fa90ea
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class PersonalPatentsController < ApplicationController
when "language" when "language"
patents_show = patents_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""), params[:keywords])} patents_show = patents_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""), params[:keywords])}
else else
patentes_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).to_s rescue ""), params[:keywords])} patents_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).to_s rescue ""), params[:keywords])}
end end
if params[:page_no].nil? if params[:page_no].nil?
page_to_show = 1 page_to_show = 1