From a626e124783f4ba26dd2a81472a3096323ae9368 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 14:35:47 +0800 Subject: [PATCH] plugin page period fix --- 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 4cfc929..007789c 100644 --- a/app/models/writing_conference.rb +++ b/app/models/writing_conference.rb @@ -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) else 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) t = "author_type" if t == "conference_author_types" + t = "period" if t == "period_start_date" end pd_title << { "plugin_data_title" => I18n.t("personal_conference.#{t}")