diff --git a/app/models/other_paper.rb b/app/models/other_paper.rb index 0f0547d..2e261d6 100644 --- a/app/models/other_paper.rb +++ b/app/models/other_paper.rb @@ -16,7 +16,6 @@ class OtherPaper field :note, :type => String, :default => "" field :authors, :type => String, :default => "", :localize => true - belongs_to :other_paper_status @@ -200,7 +199,8 @@ class OtherPaper if field == "title" link = OrbitHelper.url_to_plugin_show(other_paper.to_param,'personal_other_paper') tmp_title = (title_is_paper_format ? other_paper.create_link : value) - value = link == '#' ? tmp_title : "#{tmp_title}" + url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) + value = (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") end value end