diff --git a/app/controllers/personal_honors_controller.rb b/app/controllers/personal_honors_controller.rb index 608ac8a..3b3104b 100644 --- a/app/controllers/personal_honors_controller.rb +++ b/app/controllers/personal_honors_controller.rb @@ -35,8 +35,8 @@ class PersonalHonorsController < ApplicationController when "authors" member_profile = honor.send(:member_profile) role_status_id = member_profile.role_status_ids.first.to_s - link = OrbitHelper.member_url_to_show(member_profile.to_param, role_status_id) rescue '#' - t << {"value" => "" + (member_profile.name rescue "") + "" } + path = OrbitHelper.url_to_plugin_show(member_profile.to_param, 'member') rescue '#' + t << {"value" => "" + (member_profile.name rescue "") + "" } when "award_date" t << {"value" => (honor.send(fs).strftime("%Y/%m") rescue "")} else diff --git a/app/models/honor.rb b/app/models/honor.rb index 17fb646..536f1f7 100644 --- a/app/models/honor.rb +++ b/app/models/honor.rb @@ -99,7 +99,8 @@ class Honor def get_plugin_field_data(field) case field when "honoree" - value = self.member_profile.name + path = OrbitHelper.url_to_plugin_show(self.member_profile.to_param, 'member') rescue '#' + value = "" + self.member_profile.name + "" when "language" value = I18n.t(self.language) rescue "" when "honor_type" @@ -129,4 +130,4 @@ class Honor end end -end \ No newline at end of file +end