forked from saurabh/personal-journal
fixed author type in plugin page
This commit is contained in:
parent
955562045e
commit
d5388791be
|
@ -101,7 +101,9 @@ class JournalPaper
|
||||||
if (self.fields[t].type.to_s == "String" rescue false)
|
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)
|
fields_to_remove << t if (datas.where(t.to_sym.ne => nil).or(t.to_sym.ne => "").count == 0 rescue false)
|
||||||
else
|
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)
|
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
|
end
|
||||||
pd_title << {
|
pd_title << {
|
||||||
"plugin_data_title" => I18n.t("personal_journal.#{t}")
|
"plugin_data_title" => I18n.t("personal_journal.#{t}")
|
||||||
|
|
Loading…
Reference in New Issue