Update personal_patents_controller.rb
fix language not been translated to show
This commit is contained in:
parent
f389fa90ea
commit
1f3e11e146
|
@ -60,6 +60,8 @@ class PersonalPatentsController < ApplicationController
|
||||||
t << {"value" => (patent.patent_types.collect{|pt| pt.title}.join(", ") rescue "")}
|
t << {"value" => (patent.patent_types.collect{|pt| pt.title}.join(", ") rescue "")}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
t << {"value" => (patent.patent_author_types.collect{|pt| pt.title}.join(", ") rescue "")}
|
t << {"value" => (patent.patent_author_types.collect{|pt| pt.title}.join(", ") rescue "")}
|
||||||
|
when "language"
|
||||||
|
t << {"value" => (!patent.language.nil? ? t("#{patent.language}") : "")}
|
||||||
else
|
else
|
||||||
t << {"value" => patent.send(fs)}
|
t << {"value" => patent.send(fs)}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue