bugfix
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user