Update personal_journals_controller.rb

fix error
This commit is contained in:
chiu 2019-08-19 13:24:24 +08:00
parent d6b7db3b08
commit 5aa2f7966e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class PersonalJournalsController < ApplicationController
when "author_type"
t << {"value" => (journal_paper.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
when "paper_type"
t << {"value" => ( !journal_paper.journal_paper_types.blank? ? "(#{journal_paper.journal_paper_types.collect{|x| x.title}.join(', ')})" : nil)}
t << {"value" => (journal_paper.journal_paper_types.collect{|x| x.title}.join(', ') rescue "")}
when "language"
t << {"value" => (!journal_paper.language.nil? ? t("#{journal_paper.language}") : "")}
else