From d5a810badc3a6aef655f1f2d47bd57127e4d9da0 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 24 Jun 2016 12:41:49 +1000 Subject: [PATCH] enhance debugging --- booking.studygroups.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/booking.studygroups.inc b/booking.studygroups.inc index 50b834c..a378eb4 100644 --- a/booking.studygroups.inc +++ b/booking.studygroups.inc @@ -1112,8 +1112,9 @@ function _booking_studygroups_update_allocate($iterator, $max_people, $maximums, //check for maximum group size _booking_loop_carefully($session_count, 'total', $starting_session, $max_people, $group->booking_num_group_sessions, 4, $calculation_messages); - $calculation_messages[] = t('Assigning person with id !id with gender !gender and age group !age to session !session (currently with !num people).', - array('!id' => $iterator->key(), '!session' => $starting_session, + $calculation_messages[] = t('Assigning person !name with id !id with gender !gender and age group !age to session !session (currently with !num people).', + array('!name' => $current->booking_firstname . ' ' . $current->booking_lastname, + '!id' => $iterator->key(), '!session' => $starting_session, '!num' => $session_count[$starting_session]['total'], '!gender' => $gender, '!age' => $age_type ) ); _booking_assign_attendee_group($iterator->key(), $starting_session, $gender, $age, $working_list, $session_count, $calculation_messages);