plugin page period fix

This commit is contained in:
Harry Bomrah 2016-04-06 14:35:47 +08:00
parent 4106d684f4
commit a626e12478
1 changed files with 2 additions and 0 deletions

View File

@ -105,8 +105,10 @@ class WritingConference
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 = "conference_author_types" if t == "author_type" t = "conference_author_types" if t == "author_type"
t = "period_start_date" if t == "period"
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 == "conference_author_types" t = "author_type" if t == "conference_author_types"
t = "period" if t == "period_start_date"
end end
pd_title << { pd_title << {
"plugin_data_title" => I18n.t("personal_conference.#{t}") "plugin_data_title" => I18n.t("personal_conference.#{t}")