add age to studygroup CSV report

This commit is contained in:
Nathan Coad
2016-06-24 15:21:17 +10:00
parent 087f0405ef
commit 4df8c4f059
2 changed files with 1 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ function booking_studygroups_csv_report($group_id) {
$data[$member->booking_session_id] = array();
}
// lookup the name and role for this entry in the study group session
$text = array($member->booking_firstname, $member->booking_lastname);
$text = array($member->booking_firstname, $member->booking_lastname, '[' . _booking_get_age_years($member->booking_dob) .']');
//add their role if they're leading/helping etc
if ($member->booking_studygroup_role > 0) {
array_push($text, '(' . _booking_studygroup_role_lookup($member->booking_studygroup_role) . ')');