From c791dbaf97d6a61fee7c9c87e87c4b645cedda9b Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 24 Oct 2013 12:33:07 +1100 Subject: [PATCH] Fix for people manually set to booked in when there is already a waiting list --- booking.paypal.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/booking.paypal.inc b/booking.paypal.inc index d4b8e31..84d4bba 100644 --- a/booking.paypal.inc +++ b/booking.paypal.inc @@ -156,8 +156,13 @@ function _booking_process_payment($data) { //only recalculate their booking status if this is the initial payment, not a payment of the outstanding balance if ($balance_payment == FALSE) { - watchdog('booking', 'Processing an initial payment. Booking status is currently ' . $payment->booking_status); - if (_booking_check_bookings_full() == True || $payment->booking_status == 2) + watchdog('booking', 'Processing an initial payment. Booking status is currently ' . $payment->booking_status); + if ($payment->booking_status == 1) + { + watchdog('booking', 'This registration has been manually assigned to the booked-in list.'); + $status = 1; + } + elseif (_booking_check_bookings_full() == True || $payment->booking_status == 2) { watchdog('booking', 'This registration belongs on the waiting list.'); $status = 2;