From 3069c1a4c2c04830975a26e2296a8b2df8bb9a2f Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 26 Jun 2018 19:11:07 +1000 Subject: [PATCH] tweak --- booking.studygroups.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.studygroups.inc b/booking.studygroups.inc index 7b4cb6b..91fd30b 100644 --- a/booking.studygroups.inc +++ b/booking.studygroups.inc @@ -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;