From 33c6ef5e0c81d28c1d8c94b1ecb33341c6658caf Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 15 Dec 2022 17:40:41 +0800 Subject: [PATCH] Fix link. --- app/models/lab.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/lab.rb b/app/models/lab.rb index 0ffd471..6d65e3c 100644 --- a/app/models/lab.rb +++ b/app/models/lab.rb @@ -72,7 +72,10 @@ class Lab pd_data = [] fields_to_show.collect do |t| if t == "lab_title" - pd_data << { "data_title" => "#{p.send(t)}" } + link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_lab') + url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) + tmp_title = p.lab_title + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } else pd_data << { "data_title" => p.send(t) } end