forked from spen/seminar
Fix bug.
This commit is contained in:
parent
7224a5bb54
commit
d1ff3c2c47
|
@ -741,7 +741,7 @@ class Admin::SeminarsController < OrbitAdminController
|
||||||
if @seminar.seminar_signup_field_sets.where(:field_name.in=>except_attributes).destroy != 0
|
if @seminar.seminar_signup_field_sets.where(:field_name.in=>except_attributes).destroy != 0
|
||||||
@seminar = @seminar.reload
|
@seminar = @seminar.reload
|
||||||
end
|
end
|
||||||
SeminarSignup.attribute_names.each do |attr_signup|
|
(SeminarSignup.attribute_names + ['recaptcha']).each do |attr_signup|
|
||||||
next if except_attributes.include?(attr_signup)
|
next if except_attributes.include?(attr_signup)
|
||||||
signup_set = @seminar.seminar_signup_field_sets.select{|v| v.field_name==attr_signup }
|
signup_set = @seminar.seminar_signup_field_sets.select{|v| v.field_name==attr_signup }
|
||||||
if signup_set.length==0
|
if signup_set.length==0
|
||||||
|
|
Loading…
Reference in New Issue