Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 17:47:56 +08:00
parent 97884844bf
commit 9d3f15a695
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
"if field == \"#{slug_title}\"\n" +
"#{@blank_text}link = OrbitHelper.url_to_plugin_show(#{plugin_template}.to_param,'#{@personal_plugin_field.module_name}')\n" +
"#{@blank_text}tmp_title = #{tmp_title}\n"+
"#{@blank_text}value = link == '#' ? tmp_title : \"<a href='\#{link}' target='_blank' title='\#{tmp_title}'>\#{tmp_title}</a>\"\n" +
"#{@blank_text}url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)\n" +
"#{@blank_text}value = url_to_plugin_show_blank ? tmp_title : \"<a href='\#{link}' target='_blank' title='\#{tmp_title}'>\#{tmp_title}</a>\"\n" +
"end\n" +
"value"
value_case_codes += "\nvalue"