Fix several bus when there is no design
This commit is contained in:
1 parent
32b7d95669
commit
32519f308f
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ class Page < Item
|
||||
end
|
||||
|
||||
def set_key
|
||||
if title.new_record?
|
||||
if title && title.new_record?
|
||||
title.key = 'title'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user