This commit is contained in:
BoHung Chiu 2022-06-14 16:17:58 +08:00
parent 7224a5bb54
commit d1ff3c2c47
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ class Admin::SeminarsController < OrbitAdminController
if @seminar.seminar_signup_field_sets.where(:field_name.in=>except_attributes).destroy != 0
@seminar = @seminar.reload
end
SeminarSignup.attribute_names.each do |attr_signup|
(SeminarSignup.attribute_names + ['recaptcha']).each do |attr_signup|
next if except_attributes.include?(attr_signup)
signup_set = @seminar.seminar_signup_field_sets.select{|v| v.field_name==attr_signup }
if signup_set.length==0