Fix link.
This commit is contained in:
parent
a4235298c1
commit
8067886059
|
@ -132,7 +132,10 @@ class SelectedCourse
|
|||
pd_data = []
|
||||
fields_to_show.collect do |t|
|
||||
if t == "course_title"
|
||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_selected_course')}' target='_blank'>#{p.send(t)}" }
|
||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_selected_course')
|
||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||
tmp_title = p.course_title
|
||||
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
||||
elsif t == "selected_course_category"
|
||||
pd_data << {"data_title" => (p.course.course_category.title rescue "")}
|
||||
elsif t == "course_url"
|
||||
|
|
Loading…
Reference in New Issue