Fix for people manually set to booked in when there is already a waiting list

This commit is contained in:
2013-10-24 12:33:07 +11:00
parent 7153665b04
commit c791dbaf97

View File

@@ -157,7 +157,12 @@ function _booking_process_payment($data) {
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)
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;