small fix

This commit is contained in:
Harry Bomrah 2016-03-25 01:36:23 +08:00
parent 2dd19b2271
commit 4c89ab3a62
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class Book
pd_data = [] pd_data = []
fields_to_show.collect do |t| fields_to_show.collect do |t|
if page.custom_string_field == "table" if !page.nil? && page.custom_string_field == "table"
case t case t
when "book_title" 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>" } pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' target='_blank'>#{p.book_title}</a>" }