add exception solution

This commit is contained in:
EricTYL 2019-12-31 16:11:19 +08:00
parent 876c93e591
commit 7a36c0ee2e
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Honor
def get_plugin_field_data(field) def get_plugin_field_data(field)
case field case field
when "honoree" when "honoree"
path = OrbitHelper.url_to_plugin_show(self.member_profile.to_param, 'member') path = OrbitHelper.url_to_plugin_show(self.member_profile.to_param, 'member') rescue '#'
value = "<a href='#{path}'>" + self.member_profile.name + "</a>" value = "<a href='#{path}'>" + self.member_profile.name + "</a>"
when "language" when "language"
value = I18n.t(self.language) rescue "" value = I18n.t(self.language) rescue ""