diff --git a/app/models/seminar_main.rb b/app/models/seminar_main.rb index e36f507..92f60e9 100644 --- a/app/models/seminar_main.rb +++ b/app/models/seminar_main.rb @@ -296,7 +296,7 @@ class SeminarMain end def map_seminar_signup_ids(old_seminar_signup_ids) if @records_all["seminar_signup_ids"].present? - old_seminar_signup_ids.map{|seminar_signup_id| @records_all["seminar_signup_ids"][BSON::ObjectId(seminar_signup_id)]} + old_seminar_signup_ids.map{|seminar_signup_id| @records_all["seminar_signup_ids"][BSON::ObjectId(seminar_signup_id)].to_s rescue ""}.select{|t| t.present?} else [] end diff --git a/app/models/seminar_review.rb b/app/models/seminar_review.rb index ec4e9e1..d2106fe 100644 --- a/app/models/seminar_review.rb +++ b/app/models/seminar_review.rb @@ -73,8 +73,8 @@ class SeminarReview end def get_all_seminar_signup_ids(mode = nil) if (self.default_topics.include?("seminar_signup_contributes.description") && self.seminar_main.assign_mode == 1) || mode == 1 - final_assign_signup_ids = SeminarSession.where(:id.in=>self.seminar_session_ids).pluck(:seminar_signup_ids).flatten rescue [] - self.seminar_signup_ids - self.remove_seminar_signup_ids + final_assign_signup_ids + final_assign_signup_ids = SeminarSession.where(:id.in=>self.seminar_session_ids).pluck(:seminar_signup_ids).flatten.map{|id| id.to_s} rescue [] + final_assign_signup_ids + self.seminar_signup_ids - self.remove_seminar_signup_ids else all_seminar_signup_ids end diff --git a/app/views/admin/seminars/_seminar_signup_dashboard.html.erb b/app/views/admin/seminars/_seminar_signup_dashboard.html.erb index 9549b74..4e32378 100644 --- a/app/views/admin/seminars/_seminar_signup_dashboard.html.erb +++ b/app/views/admin/seminars/_seminar_signup_dashboard.html.erb @@ -1,7 +1,7 @@