From 04369d0531ec9a886d4a3d77e4492c1bb401ef8b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 13:55:21 +0800 Subject: [PATCH] small fix for language show page --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 60042fb..c50fc12 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -128,7 +128,7 @@ class Project def get_plugin_field_data(field) case field when "language" - value = I18n.t(self.language) rescue "" + value = I18n.t(self.language) if !self.language.nil? rescue "" when "project_type" value = self.project_type.title rescue "" when "period"