fix for frontend

This commit is contained in:
Harry Bomrah 2014-10-03 14:13:52 +08:00
parent 98236f31ee
commit f05638c33c
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ class PersonalProjectsController < ApplicationController
"project_title" => project.project_title,
"job_title" => project.job_title,
"participator" => project.participator,
"authors" => project.member_profile.name,
"authors" => (project.member_profile.name rescue ""),
"link_to_show" => OrbitHelper.url_to_show(project.to_param)
}
end

View File

@ -40,7 +40,7 @@ class Project
def get_plugin_data(fields_to_show)
plugin_datas = []
fields_to_show.each do |field|
plugin_data = self.get_plugin_field_data(field)
plugin_data = self.get_plugin_field_data(field) rescue nil
next if plugin_data.blank? or plugin_data['value'].blank?
plugin_datas << plugin_data
end