Update personal_journals_controller.rb

fix paper_type show error
This commit is contained in:
chiu 2019-08-19 13:00:44 +08:00
parent 0aa6715a2f
commit b63aebc633
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class PersonalJournalsController < ApplicationController
t << {"value" => (journal_paper.send(fs).strftime("%Y/%m") rescue "")}
when "author_type"
t << {"value" => (journal_paper.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
when "paper_types"
t << {"value" => ( !journal_paper.paper_types.blank? ? "(#{journal_paper.paper_types.collect{|x| x.title}.join(', ')})" : nil)}
when "language"
t << {"value" => (!journal_paper.language.nil? ? t("#{journal_paper.language}") : "")}
else