Update personal_patents_controller.rb

fix language not been translated to show
This commit is contained in:
chiu 2019-08-16 09:48:43 +08:00
parent f389fa90ea
commit 1f3e11e146
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ class PersonalPatentsController < ApplicationController
t << {"value" => (patent.patent_types.collect{|pt| pt.title}.join(", ") rescue "")}
when "author_type"
t << {"value" => (patent.patent_author_types.collect{|pt| pt.title}.join(", ") rescue "")}
when "language"
t << {"value" => (!patent.language.nil? ? t("#{patent.language}") : "")}
else
t << {"value" => patent.send(fs)}
end