small fix for language show page

This commit is contained in:
Harry Bomrah 2016-04-06 13:55:21 +08:00
parent 93c40803d1
commit 04369d0531
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Project
def get_plugin_field_data(field) def get_plugin_field_data(field)
case field case field
when "language" when "language"
value = I18n.t(self.language) rescue "" value = I18n.t(self.language) if !self.language.nil? rescue ""
when "project_type" when "project_type"
value = self.project_type.title rescue "" value = self.project_type.title rescue ""
when "period" when "period"