forked from saurabh/personal-book
small fix
This commit is contained in:
parent
2dd19b2271
commit
4c89ab3a62
|
@ -100,7 +100,7 @@ class Book
|
|||
|
||||
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 "book_title"
|
||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' target='_blank'>#{p.book_title}</a>" }
|
||||
|
|
Loading…
Reference in New Issue