fix for frontend
This commit is contained in:
parent
33c7931d27
commit
ac5f30d51a
|
@ -6,7 +6,7 @@ class PersonalLabsController < ApplicationController
|
|||
"year" => lab.year,
|
||||
"lab_title" => lab.lab_title,
|
||||
"location" => lab.location,
|
||||
"member" => lab.member_profile.name,
|
||||
"member" => (lab.member_profile.name rescue ""),
|
||||
"link_to_show" => OrbitHelper.url_to_show(lab.to_param)
|
||||
}
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ class Lab
|
|||
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