From 451c0addfda74603d95571a2aaf782a0ad9b75fa Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 17 Jul 2023 17:59:35 -0400 Subject: [PATCH] Put logic in wrong definition. Copy/paste mistake. --- app/controllers/conferences_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index c21d493..db3d0dc 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -217,13 +217,13 @@ class ConferencesController < ApplicationController steps -= [:hosting, :questions] end + if conference.city_id == 433 # if this conference is being held in the "South Pole" (it's a virtual/"Everywhere" event) + steps -= [:hosting, :payment, :questions] # skip hosting b/c there is none & skip payment because we're using OpenCollective + end + return steps end - - if conference.city_id == 433 # if this conference is being held in the "South Pole" (it's a virtual/"Everywhere" event) - steps -= [:hosting, :payment, :questions] # skip hosting b/c there is none & skip payment because we're using OpenCollective - end - + def required_steps(conference = nil) # return the intersection of current steps and required steps registration_steps(conference || @this_conference || @conference) & # current steps