This commit is contained in:
Nathan Coad
2016-06-24 14:23:50 +10:00
parent 2de599cae2
commit 66f634f600

View File

@@ -947,9 +947,9 @@ function _booking_studygroups_update_preallocate($group, $group_mapping, &$sessi
} }
//anyone else already assigned to this group previously //anyone else already assigned to this group previously
//this was checking equal to zero, shouldn't it be equal to 1? //this was checking equal to zero, shouldn't it be equal to 1?
elseif ($working_list[$person->booking_node_id]->processed == 1) { elseif ($working_list[$person->booking_node_id]->processed == 0) {
//check if there is someone that should be allocated to a different group than this person //check if there is someone that should be allocated to a different group than this person
if (keep_separate_id > 0) { if ($keep_separate_id > 0) {
//work out the next session to assign the other person to //work out the next session to assign the other person to
$next_session = ($session_id % $group->booking_num_group_sessions) + 1; $next_session = ($session_id % $group->booking_num_group_sessions) + 1;