From 12f75f84450ae80ab015738cc9e727ed71f071a5 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 8 Jun 2016 12:06:40 +1000 Subject: [PATCH] bugfix --- booking.studygroups_report.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.studygroups_report.inc b/booking.studygroups_report.inc index 914b587..4767d59 100644 --- a/booking.studygroups_report.inc +++ b/booking.studygroups_report.inc @@ -130,7 +130,7 @@ function booking_studygroups_leadhelp_view_summary() { //go through each of the studygroups and check if the person belongs to the group foreach ($group_mapping as $group) { $role = $group->booking_studygroup_role; - if ($group->booking_node_id == $data->nid && $role > 0) { + if ($group->booking_node_id == $person->nid && $role > 0) { $text = _booking_studygroup_role_lookup($role); $newline[] .= "" . $text . " for session #" . $group->booking_session_id; }