From 7eb2bf68334648e6fc1ce9b7470a3580fc31b9f1 Mon Sep 17 00:00:00 2001 From: Eric Tsai Date: Tue, 31 Dec 2019 16:11:54 +0800 Subject: [PATCH] change link to path --- app/controllers/personal_honors_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_honors_controller.rb b/app/controllers/personal_honors_controller.rb index 5313e98..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.url_to_plugin_show(member_profile.to_param, 'member') 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