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"