diff --git a/mod_form.php b/mod_form.php index 3441f7d6..77174495 100644 --- a/mod_form.php +++ b/mod_form.php @@ -422,7 +422,10 @@ public function definition() { // Getting Course participants. $courseparticipants = []; foreach ($participants as $participant) { - $courseparticipants[] = ['participantid' => $participant->id, 'participantemail' => $participant->email]; + $courseparticipants[] = [ + 'participantid' => $participant->id, + 'participantname' => fullname($participant) . ' <' . $participant->email . '>', + ]; } // Getting Course groups. diff --git a/templates/breakoutrooms_room_data.mustache b/templates/breakoutrooms_room_data.mustache index 91976615..1cbe4603 100644 --- a/templates/breakoutrooms_room_data.mustache +++ b/templates/breakoutrooms_room_data.mustache @@ -30,7 +30,7 @@ "courseparticipants": [ { "participantid": "2", - "participantemail": "p@example.com", + "participantname": "John Doe", "selected": true } ], diff --git a/templates/breakoutrooms_room_datatoclone.mustache b/templates/breakoutrooms_room_datatoclone.mustache index 64f9e076..23b43418 100644 --- a/templates/breakoutrooms_room_datatoclone.mustache +++ b/templates/breakoutrooms_room_datatoclone.mustache @@ -30,7 +30,7 @@ "courseparticipants": [ { "participantid": "2", - "participantemail": "p@example.com", + "participantname": "John Doe", "selected": true } ], diff --git a/templates/breakoutrooms_room_participants.mustache b/templates/breakoutrooms_room_participants.mustache index ca5e613f..2868b7df 100644 --- a/templates/breakoutrooms_room_participants.mustache +++ b/templates/breakoutrooms_room_participants.mustache @@ -29,7 +29,7 @@ "courseparticipants": [ { "participantid": "2", - "participantemail": "a@example.com", + "participantname": "John Doe", "selected": true } ] @@ -39,7 +39,7 @@