From f05638c33c60a5470a5082fb131bf47d843ae47c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 3 Oct 2014 14:13:52 +0800 Subject: [PATCH] fix for frontend --- app/controllers/personal_projects_controller.rb | 2 +- app/models/project.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_projects_controller.rb b/app/controllers/personal_projects_controller.rb index 2498adb..68a50b5 100644 --- a/app/controllers/personal_projects_controller.rb +++ b/app/controllers/personal_projects_controller.rb @@ -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 diff --git a/app/models/project.rb b/app/models/project.rb index d869238..7bc9428 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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