fix for frontend
This commit is contained in:
parent
2d9319554b
commit
8239dd9ef8
|
@ -1,11 +1,12 @@
|
|||
class PersonalConferencesController < ApplicationController
|
||||
def index
|
||||
writing_conferences = WritingConference.where(:is_hidden=>false).order_by(:year=>'desc').page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
||||
|
||||
writing_conference_list = writing_conferences.collect do |writing_conference|
|
||||
{
|
||||
"year" => writing_conference.year,
|
||||
"paper_title" => writing_conference.create_link,
|
||||
"author" => writing_conference.member_profile.name,
|
||||
"author" => (writing_conference.member_profile.name rescue ""),
|
||||
"link_to_show" => OrbitHelper.url_to_show(writing_conference.to_param)
|
||||
}
|
||||
end
|
||||
|
|
|
@ -59,7 +59,7 @@ class WritingConference
|
|||
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