small fix

This commit is contained in:
Harry Bomrah 2016-03-25 01:36:52 +08:00
parent 08f9af1761
commit bec2551b57
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class JournalPaper
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" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_journal')}' target='_blank'>#{p.paper_title}</a>" }