From 67b787c3083052bf2d8a268c9fb540e31cfa6be8 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 19 Aug 2019 13:56:07 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 0f04765..9791270 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -37,7 +37,7 @@ class PersonalJournalsController < ApplicationController when "author_type" journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_author_types.collect{|jat| jat.title}.join(", "), params[:keywords])} when "paper_type" - journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_type.title, params[:keywords])} + journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_type.title.to_s, params[:keywords])} when "language" journal_papers_show = journal_papers_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""), params[:keywords])} else