fixed yes and no

This commit is contained in:
Harry Bomrah 2016-04-06 15:37:17 +08:00
parent 6374deebf5
commit 2b7f8da7e4
1 changed files with 4 additions and 2 deletions

View File

@ -95,6 +95,8 @@ class TechnologyTransfer
case field
when "technology_transfer_category"
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 ""
end