From 9c4580410f2abc4301f45db6bd2088e8fbd4bcb4 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 14 Aug 2019 16:30:01 +0800 Subject: [PATCH] Update personal_conferences_controller.rb --- app/controllers/personal_conferences_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/personal_conferences_controller.rb b/app/controllers/personal_conferences_controller.rb index a8ea973..c32d2b8 100644 --- a/app/controllers/personal_conferences_controller.rb +++ b/app/controllers/personal_conferences_controller.rb @@ -40,6 +40,8 @@ class PersonalConferencesController < ApplicationController 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.conference_author_types.collect{|cat| cat.title}.join(", ").include? params[:keywords]} + when "language" + writing_conferences_show = writing_conferences_temp.select {|value| (!value.language.nil? ? t("#{value.language}") : "").include? params[:keywords]} else writing_conferences_show = writing_conferences_temp.select {|value| value.send(params[:selectbox]).to_s.include? params[:keywords]} end