forked from saurabh/personal-diploma
fix for frontend
This commit is contained in:
parent
1fcae46912
commit
456a9da33a
|
@ -3,7 +3,7 @@ class PersonalDiplomasController < ApplicationController
|
|||
diplomas = Diploma.where(:is_hidden=>false).order_by(:end_date=>'desc', :start_date=>'desc').page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
||||
diploma_list = diplomas.collect do |diploma|
|
||||
{
|
||||
"member" => diploma.member_profile.name,
|
||||
"member" => (diploma.member_profile.name rescue ""),
|
||||
"duration" => diploma.duration,
|
||||
"school_name" => diploma.school_name,
|
||||
"degree" => diploma.degree,
|
||||
|
|
|
@ -40,7 +40,7 @@ class Diploma
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue