fix email and name issue

This commit is contained in:
Bomrah Harry 2023-10-27 20:06:14 +08:00
parent 41128244d2
commit d7651a1716
1 changed files with 4 additions and 1 deletions

View File

@ -495,7 +495,10 @@ class SeminarsController < ApplicationController
end
end
end
@signup = SeminarSignup.where(name: params[:seminar_signup][:name], email: params[:seminar_signup][:email], seminar_main_id: seminar_id ).first
@signup = SeminarSignup.where(email: params[:seminar_signup][:email], seminar_main_id: seminar_id ).first
if @signup.blank?
@signup = SeminarSignup.where(name: params[:seminar_signup][:name], seminar_main_id: seminar_id ).first
end
@seminar_signup = SeminarSignup.new(seminar_signup_params)
not_signup_yet = @signup.blank?