From d5388791beb04906f9c8ddde8a90d7b074fbcf1e Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 14:01:34 +0800 Subject: [PATCH] fixed author type in plugin page --- app/models/journal_paper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 99e2641..61d3c55 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -101,7 +101,9 @@ class JournalPaper if (self.fields[t].type.to_s == "String" rescue false) fields_to_remove << t if (datas.where(t.to_sym.ne => nil).or(t.to_sym.ne => "").count == 0 rescue false) else + t = "journal_paper_author_types" if t == "author_type" fields_to_remove << t if (datas.where(t.to_sym.ne => nil).count == 0 rescue false) + t = "author_type" if t == "journal_paper_author_types" end pd_title << { "plugin_data_title" => I18n.t("personal_journal.#{t}")