Fix edit_title for nil module_app

This commit is contained in:
chris 2013-10-29 14:00:56 +08:00
parent fead457616
commit f2508e79cb
1 changed files with 1 additions and 1 deletions

View File

@ -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