From aba799cfcc4ff149fa7cc3df9db9862deea3484e Mon Sep 17 00:00:00 2001 From: Godwin Date: Tue, 9 Aug 2016 22:23:34 -0700 Subject: [PATCH] Fixed registration page landing on payment after payment has been made --- app/controllers/conferences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index 274a2fe..7cb8afd 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -183,7 +183,7 @@ class ConferencesController < ApplicationController # have we reached a new level? unless @registration.steps_completed.include? form_step.to_s # 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 << form_step @registration.steps_completed.uniq!