From ac35478326021f463596d71e7885d80487cb5307 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 25 Mar 2016 01:37:18 +0800 Subject: [PATCH] small fix --- app/models/writing_conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/writing_conference.rb b/app/models/writing_conference.rb index 2cbc74f..587518e 100644 --- a/app/models/writing_conference.rb +++ b/app/models/writing_conference.rb @@ -105,7 +105,7 @@ class WritingConference pd_data = [] fields_to_show.collect do |t| - if page.custom_string_field == "table" + if !page.nil? && page.custom_string_field == "table" case t when "paper_title" pd_data << { "data_title" => "#{p.paper_title}" }