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