From 21ed1535aaafbe47a71bd427d83c580ba0449224 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 15 Dec 2022 17:31:44 +0800 Subject: [PATCH] Fix link. --- app/models/certificate.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/certificate.rb b/app/models/certificate.rb index aa5cd58..a6c6319 100644 --- a/app/models/certificate.rb +++ b/app/models/certificate.rb @@ -48,7 +48,10 @@ class Certificate pd_data = [] fields_to_show.collect do |t| if t == "title" - pd_data << { "data_title" => "#{p.send(t)}" } + link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_certificate') + url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) + tmp_title = p.title + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } else pd_data << { "data_title" => p.send(t) } end