Fix for people manually set to booked in when there is already a waiting list
This commit is contained in:
@@ -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
|
//only recalculate their booking status if this is the initial payment, not a payment of the outstanding balance
|
||||||
if ($balance_payment == FALSE)
|
if ($balance_payment == FALSE)
|
||||||
{
|
{
|
||||||
watchdog('booking', 'Processing an initial payment. Booking status is currently ' . $payment->booking_status);
|
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.');
|
watchdog('booking', 'This registration belongs on the waiting list.');
|
||||||
$status = 2;
|
$status = 2;
|
||||||
|
Reference in New Issue
Block a user