forked from saurabh/personal-journal
small fix for page
This commit is contained in:
parent
33acff9f10
commit
08f9af1761
|
@ -72,7 +72,7 @@ class JournalPaper
|
||||||
def self.get_plugin_datas_to_member(datas)
|
def self.get_plugin_datas_to_member(datas)
|
||||||
page = Page.where(:module => "personal_journal").first rescue nil
|
page = Page.where(:module => "personal_journal").first rescue nil
|
||||||
|
|
||||||
if page.custom_string_field == "table"
|
if !page.nil? && page.custom_string_field == "table"
|
||||||
fields_to_show = [
|
fields_to_show = [
|
||||||
"paper_title",
|
"paper_title",
|
||||||
"journal_title",
|
"journal_title",
|
||||||
|
|
Loading…
Reference in New Issue