This commit is contained in:
BoHung Chiu 2021-04-24 19:32:56 +08:00
parent 6863284dfa
commit 67e1dd153f
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ class Admin::SeminarsController < OrbitAdminController
seminar_submission_values.each do |v| seminar_submission_values.each do |v|
if v.seminar_signup_contribute.nil? if v.seminar_signup_contribute.nil?
v.destroy v.destroy
next
end end
next if v.val.to_i.to_s != v.val next if v.val.to_i.to_s != v.val
seminar_session = @seminar.seminar_sessions.where(:key=>v.val.to_i).first seminar_session = @seminar.seminar_sessions.where(:key=>v.val.to_i).first