Browse Source

wtf?

development
Godwin 11 years ago
parent
commit
c90cf4ddae
  1. 4
      app/controllers/conferences_controller.rb
  2. 4
      app/views/conferences/_register_new_organization.html.haml

4
app/controllers/conferences_controller.rb

@ -422,6 +422,10 @@ class ConferencesController < ApplicationController
return
end
if data[:next_step].blank?
session.delete(:registration)
end
data = register_submit
@register_step = is_post ? data[:next_step] : 'register'
@error_message = data[:error] ? data[:message] : nil

4
app/views/conferences/_register_new_organization.html.haml

@ -1,8 +1,4 @@
- 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'

Loading…
Cancel
Save