From 83ed03f7ffd7add16dd7394128f6f5829cb20a0a Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 23 Jun 2016 18:36:42 +1000 Subject: [PATCH] logic change in studygroup calculations for committee members --- booking.studygroups.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.studygroups.inc b/booking.studygroups.inc index a995498..1f86554 100644 --- a/booking.studygroups.inc +++ b/booking.studygroups.inc @@ -740,11 +740,11 @@ function booking_studygroups_update_form($node, &$form_state, $sid) { //if the study group id matches the group we're currently looking at if ($person->booking_studygroup_id == $group->sid) { //if they have a role defined - //or if they are a committee member and this is the readings group + //or if they are a committee member //or if the manually allocated flag is set //then make sure they stay where they are if (($person->booking_studygroup_role > 0) || - ($committee_flag == 'Y' && $group->booking_is_readinggroup == 'Y') || + ($committee_flag == 'Y') || ($manually_allocated_flag == 'Y')) { $calculation_messages[] = t('Leader/helper/committee/manual allocation with id !id assigned to session !session (currently with !num people).',