forked from saurabh/personal-journal
small fix
This commit is contained in:
parent
08f9af1761
commit
bec2551b57
|
@ -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>" }
|
||||
|
|
Loading…
Reference in New Issue