Update personal_patents_controller.rb

fix error
This commit is contained in:
chiu 2019-08-16 10:04:54 +08:00
parent 0c0add265a
commit 4c6cc5e836
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class PersonalPatentsController < ApplicationController
when "publish_date", "application_date", "end_date" when "publish_date", "application_date", "end_date"
patents_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).strftime("%Y/%m/%d") rescue ""), params[:keywords])} patents_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).strftime("%Y/%m/%d") rescue ""), params[:keywords])}
when "patent_category" when "patent_category"
patent_show = patents_temp.select {|value| search_all_words((value.patent_types.collect{|pt| pt.title}.join(", ").to_s rescue ""), params[:keywords])} patents_show = patents_temp.select {|value| search_all_words((value.patent_types.collect{|pt| pt.title}.join(", ").to_s rescue ""), params[:keywords])}
when "author_type" when "author_type"
patents_show = patents_temp.select {|value| search_all_words(value.patent_author_types.collect{|pt| pt.title}.join(", "), params[:keywords])} patents_show = patents_temp.select {|value| search_all_words(value.patent_author_types.collect{|pt| pt.title}.join(", "), params[:keywords])}
when "language" when "language"