Fix edit_title for nil module_app
This commit is contained in:
parent
fead457616
commit
f2508e79cb
|
@ -59,7 +59,7 @@ class PagePart
|
|||
when 'public_r_tag'
|
||||
self.public_r_tag.humanize
|
||||
when 'module_widget'
|
||||
self.module_app.title
|
||||
self.module_app.title rescue I18n.t(:undefined)
|
||||
else
|
||||
I18n.t(:undefined)
|
||||
end
|
||||
|
|
Reference in New Issue