From 0fae8917d23ff503948a222a10d0ed8df827cd2d Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 15 Dec 2022 17:43:55 +0800 Subject: [PATCH] Fix link. --- app/models/research.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/research.rb b/app/models/research.rb index 4e60417..a59d3c2 100644 --- a/app/models/research.rb +++ b/app/models/research.rb @@ -76,7 +76,10 @@ class Research pd_data = [] fields_to_show.collect do |t| if t == "research_title" - pd_data << { "data_title" => "#{p.send(t)}" } + link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_research') + url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) + tmp_title = p.research_title + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } elsif t == "research_category" pd_data << {"data_title" => (p.research_category.title rescue "")} else