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'
|
when 'public_r_tag'
|
||||||
self.public_r_tag.humanize
|
self.public_r_tag.humanize
|
||||||
when 'module_widget'
|
when 'module_widget'
|
||||||
self.module_app.title
|
self.module_app.title rescue I18n.t(:undefined)
|
||||||
else
|
else
|
||||||
I18n.t(:undefined)
|
I18n.t(:undefined)
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue