small fix
This commit is contained in:
parent
09591e8ae5
commit
2dd19b2271
|
@ -63,7 +63,7 @@ class Book
|
||||||
|
|
||||||
def self.get_plugin_datas_to_member(datas)
|
def self.get_plugin_datas_to_member(datas)
|
||||||
page = Page.where(:module => "personal_book").first rescue nil
|
page = Page.where(:module => "personal_book").first rescue nil
|
||||||
if page.custom_string_field == "table"
|
if !page.nil? && page.custom_string_field == "table"
|
||||||
fields_to_show = [
|
fields_to_show = [
|
||||||
"authors",
|
"authors",
|
||||||
"book_title",
|
"book_title",
|
||||||
|
|
Loading…
Reference in New Issue