Fixed hosting bug
This commit is contained in:
@@ -239,7 +239,7 @@ module ApplicationHelper
|
||||
def registration_steps(conference = @conference)
|
||||
{
|
||||
pre: [:policy, :contact_info, :workshops],
|
||||
open: [:policy, :contact_info, :questions, :payment, :workshops]
|
||||
open: [:policy, :contact_info, :questions, :hosting, :payment, :workshops]
|
||||
}[@this_conference.registration_status]
|
||||
end
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ module RegistrationHelper
|
||||
disable_steps = false
|
||||
completed_steps = registration.steps_completed || []
|
||||
registration_complete = registration_complete?(registration)
|
||||
|
||||
if registration.city_id == registration.conference.city_id
|
||||
steps -= [:questions]
|
||||
else
|
||||
steps -= [:hosting]
|
||||
end
|
||||
|
||||
steps.each do | step |
|
||||
# disable the step if we've already found an incomplete step
|
||||
enabled = !disable_steps || registration_complete
|
||||
|
||||
Reference in New Issue
Block a user