From d1ff3c2c478ad471de7a58679decc30de56a1f5c Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 14 Jun 2022 16:17:58 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/seminars_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/seminars_controller.rb b/app/controllers/admin/seminars_controller.rb index f2f0dcf..bdd0aad 100644 --- a/app/controllers/admin/seminars_controller.rb +++ b/app/controllers/admin/seminars_controller.rb @@ -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