fix for frontend

This commit is contained in:
Harry Bomrah 2014-10-03 14:11:11 +08:00
parent 66a41ac431
commit 417048b7b9
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Book
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