From 6bd7f11c528f3a367af91c522f85be5528a1ca94 Mon Sep 17 00:00:00 2001 From: LinguaFrancaTranslator Date: Wed, 11 Jan 2017 17:55:22 +0000 Subject: [PATCH] Fixed workshops --- app/helpers/registration_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/registration_helper.rb b/app/helpers/registration_helper.rb index 0d39dae..c5ec3fa 100644 --- a/app/helpers/registration_helper.rb +++ b/app/helpers/registration_helper.rb @@ -6,7 +6,7 @@ module RegistrationHelper current_steps = [] disable_steps = false completed_steps = registration.steps_completed || [] - registration_complete = registration_complete?(registration) + # registration_complete = registration_complete?(registration) if potential_provider(registration) steps -= [:questions] @@ -16,9 +16,9 @@ module RegistrationHelper steps.each do | step | # disable the step if we've already found an incomplete step - enabled = !disable_steps || registration_complete + enabled = !disable_steps# || registration_complete # record whether or not we've found an incomplete step - disable_steps ||= !completed_steps.include?(step.to_s) + disable_steps ||= !completed_steps.include?(step.to_s) && ![:payment, :workshops].include?(step) current_steps << { name: step,