From 4f59a27f353f827760732648afbc28602002571b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 13 Apr 2016 15:33:50 +0800 Subject: [PATCH] added category detail page --- app/controllers/personal_technology_transfers_controller.rb | 3 ++- app/models/technology_transfer.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_technology_transfers_controller.rb b/app/controllers/personal_technology_transfers_controller.rb index f2d9a81..330ccdd 100644 --- a/app/controllers/personal_technology_transfers_controller.rb +++ b/app/controllers/personal_technology_transfers_controller.rb @@ -65,7 +65,8 @@ class PersonalTechnologyTransfersController < ApplicationController "category", "patent_granted", "patent_number", - "authors" + "authors", + "category" ] {"plugin_datas"=>plugin.get_plugin_data(fields_to_show)} diff --git a/app/models/technology_transfer.rb b/app/models/technology_transfer.rb index 066fd2a..64081b7 100644 --- a/app/models/technology_transfer.rb +++ b/app/models/technology_transfer.rb @@ -93,7 +93,7 @@ class TechnologyTransfer def get_plugin_field_data(field) case field - when "technology_transfer_category" + when "technology_transfer_category", "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")