From 276f5c8381ac851ab23d5c5688af77037b4c18a9 Mon Sep 17 00:00:00 2001 From: Godwin Date: Mon, 28 Jul 2014 12:46:15 -0600 Subject: [PATCH] wtf? --- app/views/conferences/_register_new_organization.html.haml | 4 ++++ app/views/conferences/_register_organizations.html.haml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/conferences/_register_new_organization.html.haml b/app/views/conferences/_register_new_organization.html.haml index 966cf2e..418c283 100644 --- a/app/views/conferences/_register_new_organization.html.haml +++ b/app/views/conferences/_register_new_organization.html.haml @@ -1,4 +1,8 @@ - org_index = session[:registration][:new_org_index] || 0 +- if session[:registration][:new_organization].nil? + - session[:registration][:new_organization] = Array.new + - session[:registration][:new_organization][0] = Hash.new + - org_index = 0 = hidden_field_tag :new_org_index, org_index - if session[:registration][:new_organization].length > 1 %h3=_'registration.new_organization.list.title','Your New Organizations' diff --git a/app/views/conferences/_register_organizations.html.haml b/app/views/conferences/_register_organizations.html.haml index c51fbe2..993c0cf 100644 --- a/app/views/conferences/_register_organizations.html.haml +++ b/app/views/conferences/_register_organizations.html.haml @@ -1,4 +1,7 @@ -- registration = ConferenceRegistration.find(session[:registration][:registration_id]) +- puts session[:registration][:registration_id] +- registration = ConferenceRegistration.find_by(:email => session[:registration][:email]) +- session[:registration][:registration_id] = registration.id +- puts session[:registration][:registration_id] - if registration && registration.is_confirmed %h3=_'register.organizations.confirm_thanks.title','Thanks for confirming!' - if session[:registration][:is_workshop_host]