This commit is contained in:
Nathan Coad
2018-06-26 19:11:07 +10:00
parent ca551094fd
commit 3069c1a4c2

View File

@@ -963,7 +963,7 @@ function _booking_studygroups_update_preallocate($group, $group_mapping, &$sessi
_booking_assign_attendee_group($keep_separate_id, $next_session, $gender, $age, $working_list, $session_count, $calculation_messages);
}
//if there is a spouse or bf/gf then keep them together
if ($spouse_id > 0) {
if ($spouse_id > 0 && $working_list[$spouse_id]->booking_status == 1) {
//if the spouse has already been processed due to being a leader or helper, use that session
if ($working_list[$spouse_id]->processed == 1) {
$session_id = $working_list[$spouse_id]->session;