make sure we actually delete leader/helper sessions

This commit is contained in:
2014-02-08 22:21:34 +11:00
parent 1e1a36c2db
commit e27c80f276

View File

@@ -229,6 +229,8 @@ function booking_available_leadhelp_select_form_submit($form, &$form_state) {
->condition('booking_is_leader', 'Y')
->execute();
watchdog('booking', 'Removed person !nid from being a leader in study group !sid, affected !num rows.', array ('!nid' => $key, '!sid' => $booking_studygroup, '!num' => $num_deleted));
//skip to the next person
continue;
}
//remove from being a helper?
elseif ($helper_session[$key] == "Remove")
@@ -241,6 +243,8 @@ function booking_available_leadhelp_select_form_submit($form, &$form_state) {
->condition('booking_is_helper', 'Y')
->execute();
watchdog('booking', 'Removed person !nid from being a helper in study group !sid, affected !num rows.', array ('!nid' => $key, '!sid' => $booking_studygroup, '!num' => $num_deleted));
//skip to the next person
continue;
}
//was this person set as a leader?
elseif ($leader_session[$key] <> 0)