fix email and name issue
This commit is contained in:
parent
41128244d2
commit
d7651a1716
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue