From e9215925cdf2d214550ac02fd00f8bb6215b98c4 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 14:07:46 +0800 Subject: [PATCH] small fix for confderence --- app/models/writing_conference.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/writing_conference.rb b/app/models/writing_conference.rb index 5b53a6d..be738b4 100644 --- a/app/models/writing_conference.rb +++ b/app/models/writing_conference.rb @@ -96,7 +96,9 @@ class WritingConference 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 = "conference_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 == "conference_author_types" end pd_title << { "plugin_data_title" => I18n.t("personal_conference.#{t}")