diff --git a/app/models/activity.rb b/app/models/activity.rb index c12fa40..840ee3a 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -73,7 +73,10 @@ class Activity pd_data = [] fields_to_show.collect do |t| if t == "activity_title" - pd_data << { "data_title" => "#{p.send(t)}" } + link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_activity') + url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) + tmp_title = p.activity_title + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } elsif t.include?("date") pd_data << { "data_title" => (p.send(t).strftime('%Y-%m-%d') rescue p.send(t)) } else