small fix for confderence

This commit is contained in:
Harry Bomrah 2016-04-06 14:07:46 +08:00
parent b79a6d29c5
commit e9215925cd
1 changed files with 2 additions and 0 deletions

View File

@ -96,7 +96,9 @@ class WritingConference
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 = "conference_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 == "conference_author_types"
end end
pd_title << { pd_title << {
"plugin_data_title" => I18n.t("personal_conference.#{t}") "plugin_data_title" => I18n.t("personal_conference.#{t}")