small fix for page
This commit is contained in:
1 parent
33acff9f10
commit
08f9af1761
1 file changed
+1
-1
@@ -72,7 +72,7 @@ class JournalPaper
|
||||
def self.get_plugin_datas_to_member(datas)
|
||||
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 = [
|
||||
"paper_title",
|
||||
"journal_title",
|
||||
|
||||
Reference in new issue
Block a user