forked from spen/seminar
fix error
This commit is contained in:
parent
9203dbdb93
commit
1b9ba44918
|
@ -78,8 +78,10 @@ class Admin::SeminarsController < OrbitAdminController
|
||||||
seminar_main_params = seminar_params
|
seminar_main_params = seminar_params
|
||||||
seminar_signup_set_params = seminar_main_params['seminar_signup_field_sets']
|
seminar_signup_set_params = seminar_main_params['seminar_signup_field_sets']
|
||||||
seminar_submission_set_params = seminar_main_params['seminar_submission_field_sets']
|
seminar_submission_set_params = seminar_main_params['seminar_submission_field_sets']
|
||||||
|
seminar_email_sets_params = seminar_main_params['seminar_email_sets']
|
||||||
seminar_main_params.delete(:seminar_signup_field_sets)
|
seminar_main_params.delete(:seminar_signup_field_sets)
|
||||||
seminar_main_params.delete(:seminar_submission_field_sets)
|
seminar_main_params.delete(:seminar_submission_field_sets)
|
||||||
|
seminar_main_params.delete(:seminar_email_sets)
|
||||||
seminar = SeminarMain.new(seminar_main_params)
|
seminar = SeminarMain.new(seminar_main_params)
|
||||||
seminar.create_user_id = current_user.id
|
seminar.create_user_id = current_user.id
|
||||||
seminar.update_user_id = current_user.id
|
seminar.update_user_id = current_user.id
|
||||||
|
@ -90,6 +92,9 @@ class Admin::SeminarsController < OrbitAdminController
|
||||||
seminar_submission_set_params.each do |key,value|
|
seminar_submission_set_params.each do |key,value|
|
||||||
seminar.seminar_submission_field_sets.create(value)
|
seminar.seminar_submission_field_sets.create(value)
|
||||||
end
|
end
|
||||||
|
seminar_email_sets_params.each do |key,value|
|
||||||
|
seminar.seminar_email_sets.create(value)
|
||||||
|
end
|
||||||
redirect_to params['referer_url']
|
redirect_to params['referer_url']
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue