Update personal_conferences_controller.rb

This commit is contained in:
chiu 2019-08-14 13:22:39 +08:00
parent 51eb98dc23
commit c231e1b2d5
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class PersonalConferencesController < ApplicationController
when "publication_date"
writing_conferences_show = writing_conferences_temp.select {|value| value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', ').include? params[:keywords]}
when "author_type"
writing_conferences_show = writing_conferences_temp.select {|value| value.journal_paper_author_types.collect{|cat| cat.title}.join(", ").include? params[:keywords]}
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_author_types.collect{|cat| cat.title}.join(", ").include? params[:keywords]}
else
writing_conferences_show = writing_conferences_temp.select {|value| value.send(params[:selectbox]).to_s.include? params[:keywords]}
end
@ -81,7 +81,7 @@ class PersonalConferencesController < ApplicationController
end
writing_conference_list << {"cps" => t}
end
choice_show = []
headers = []
fields_to_show.each do |fs|
col = 2