From 4a986f33f223bed15ed207ed84f939e71dbcb36d Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 1 Jun 2014 19:15:10 +1000 Subject: [PATCH] Enable trigger processing for missed payment status --- booking.register.inc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/booking.register.inc b/booking.register.inc index a77b4e3..445ef17 100644 --- a/booking.register.inc +++ b/booking.register.inc @@ -1372,10 +1372,7 @@ function _booking_update($node) { elseif ($previous_status->booking_status == 1 && $node->booking_status == 4) { watchdog('booking', 'Detected person moving from Booked In list to Missed Payment Deadline list.'); - - //disable this until we're sure that's what we want to do - - /* + //let this person know they're no longer "booked in" _booking_missedpayment_email($node->nid); @@ -1388,7 +1385,7 @@ function _booking_update($node) { //check if there is room on the booked-in list if (_booking_check_bookings_full() == False) { - watchdog('booking', 'Looks like there was room on the booked in list, so lets tell the next person'); + watchdog('booking', 'Position available, so lets tell the next person'); //find the first person on the waiting list $temp_nid = _booking_get_waitinglist_top(); @@ -1402,8 +1399,9 @@ function _booking_update($node) { } } else - watchdog('booking', 'Still no room on the booked in list though.'); - */ + { + watchdog('booking', 'Still no room on the booked in list.'); + } } //if someone is moving to the not-coming list from the waiting list elseif ($previous_status->booking_status == 2 && $node->booking_status == 3)