forked from saurabh/personal-honor
fix for frontend
This commit is contained in:
parent
816d8d4b07
commit
877b622c13
|
@ -6,7 +6,7 @@ class PersonalHonorsController < ApplicationController
|
||||||
"year" => honor.year,
|
"year" => honor.year,
|
||||||
"award_name" => honor.award_name,
|
"award_name" => honor.award_name,
|
||||||
"awarding_unit" => honor.awarding_unit,
|
"awarding_unit" => honor.awarding_unit,
|
||||||
"award_winner" => honor.member_profile.name,
|
"award_winner" => (honor.member_profile.name rescue ""),
|
||||||
"link_to_show" => OrbitHelper.url_to_show(honor.to_param)
|
"link_to_show" => OrbitHelper.url_to_show(honor.to_param)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,7 +29,7 @@ class Honor
|
||||||
def get_plugin_data(fields_to_show)
|
def get_plugin_data(fields_to_show)
|
||||||
plugin_datas = []
|
plugin_datas = []
|
||||||
fields_to_show.each do |field|
|
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?
|
next if plugin_data.blank? or plugin_data['value'].blank?
|
||||||
plugin_datas << plugin_data
|
plugin_datas << plugin_data
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue