From e8ab2e1b29d8c048c493591aa1342d09e999facc Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 15 Jun 2020 04:32:53 -0700 Subject: [PATCH] attempt to fix a bad bug?? --- app/models/ticket_purchase.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/ticket_purchase.rb b/app/models/ticket_purchase.rb index a3dfd1cd..febe4660 100644 --- a/app/models/ticket_purchase.rb +++ b/app/models/ticket_purchase.rb @@ -105,6 +105,8 @@ def set_week end def count_purchased_registration_tickets(conference, purchases) + # TODO: WHAT CAUSED THIS??? + return unless purcahses conference.tickets.for_registration.inject(0) do |sum, registration_ticket| sum + purchases[registration_ticket.id.to_s].to_i end