forked from saurabh/personal-patent
fix string+nil problem
This commit is contained in:
parent
d79398896b
commit
f93c146c17
|
@ -88,7 +88,7 @@ class Patent
|
||||||
fields_to_show.collect do |t|
|
fields_to_show.collect do |t|
|
||||||
case t
|
case t
|
||||||
when "patent_title"
|
when "patent_title"
|
||||||
pd_data << {"data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_patent')}' title='" + (p.send(t) rescue "") +"' target='_blank'>" + (p.send(t) rescue "") + "</a>"}
|
pd_data << {"data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_patent')}' title='#{p.patent_title}' target='_blank'> #{p.patent_title} </a>"}
|
||||||
when "publish_date"
|
when "publish_date"
|
||||||
pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")}
|
pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")}
|
||||||
when "application_date"
|
when "application_date"
|
||||||
|
|
Loading…
Reference in New Issue