Fixed registration page landing on payment after payment has been made

This commit is contained in:
Godwin 2016-08-09 22:23:34 -07:00
parent 81f5c21f43
commit aba799cfcc

View File

@ -183,7 +183,7 @@ class ConferencesController < ApplicationController
# have we reached a new level? # have we reached a new level?
unless @registration.steps_completed.include? form_step.to_s unless @registration.steps_completed.include? form_step.to_s
# this step is only completed if a payment has been made # this step is only completed if a payment has been made
unless form_step == :payment if form_step != :payment || (@registration.registration_fees_paid || 0) > 0
@registration.steps_completed ||= [] @registration.steps_completed ||= []
@registration.steps_completed << form_step @registration.steps_completed << form_step
@registration.steps_completed.uniq! @registration.steps_completed.uniq!