From 1f3e11e1464a4e469e3fb1b095bb526bd9dd8cdc Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 16 Aug 2019 09:48:43 +0800 Subject: [PATCH] Update personal_patents_controller.rb fix language not been translated to show --- app/controllers/personal_patents_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/personal_patents_controller.rb b/app/controllers/personal_patents_controller.rb index 58aaed4..c68c49a 100644 --- a/app/controllers/personal_patents_controller.rb +++ b/app/controllers/personal_patents_controller.rb @@ -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