diff --git a/app/models/technology_transfer.rb b/app/models/technology_transfer.rb index c5e0961..066fd2a 100644 --- a/app/models/technology_transfer.rb +++ b/app/models/technology_transfer.rb @@ -94,9 +94,11 @@ class TechnologyTransfer def get_plugin_field_data(field) case field when "technology_transfer_category" - value = self.technology_transfer_category.title rescue "" + value = self.technology_transfer_category.title rescue "" + when "patent_granted" + value = self.patent_granted ? I18n.t("personal_technology_transfer.y_es") : I18n.t("personal_technology_transfer.n_o") else - value = self.send(field) rescue "" + value = self.send(field) rescue "" end value = (value =~ /\A#{URI::regexp(['http', 'https'])}\z/) ? "#{value}" : value