This commit is contained in:
2018-07-13 13:57:26 +10:00
parent 3bead3ad21
commit 2480c13641

View File

@@ -861,6 +861,7 @@ function booking_variety_regn_edit_form_submit($form, &$form_state) {
}
//iterate over the old list comparing to the new list in case there are regn counts we need to decrease
if (isset($previous_variety_ids)) {
foreach ($previous_variety_ids as $previous_tid => $previous_sid) {
if (! isset($booking_variety_ids[$previous_tid])) {
watchdog('booking_debug', 'Person @nid in timeslot @tid is no longer registered for a variety session so reducing count for @vid by 1', array(
@@ -873,6 +874,7 @@ function booking_variety_regn_edit_form_submit($form, &$form_state) {
->execute();
}
}
}
// update the session registration information for this person
$result = db_update('booking_variety_regn')