Short description: when using groups, certificate allways shows the same teacher's name, regardless his and student's group memebrship.
Steps to reproduce:
create course with group options set to separate or visible groups
create custom certificate activity with group options set to separate or visible groups
edit certificate, add teacher name filed, set the with of the field (for example 20), position the filed so it is visible on the certificate
create 4 users: user1, user2, user3 and user4
enroll user1 and user2 to the course with role student
enroll user3 and user4 to the course with role teacher or editing-teacher
create two groups: group1 and group2
assign user1 and user 3 to group1
assign user2 and user 4 to group2
login as user2 and, open the custom certificate activity and view the certificate. Notice that teacher name on the certificate is the name of the user3 although user2 is a member of the group2 and user3 is the member of the group1.
Suggestions on how to solve it: if using groups (visible or separate), teacher name should be the name of the teacher that is a member of the same group in which the student that views certificate is member of. If there are more than 1 teachers in the student's group, teacher field should display all teacher one under the other. Things could get a little bit more complicated if a student belongs to more than one group. That could be solved by implementing dropdown menu for choosing a group on the form where the View Certificate button is displayed to the student. This dropdown menu should be visible only if group mode is set in certificate activity. It should show only groups that a student belongs to. Teacher name field should display the name(s) of the teacher(s) that belong to chosen group.
Short description: when using groups, certificate allways shows the same teacher's name, regardless his and student's group memebrship.
Steps to reproduce:
Suggestions on how to solve it: if using groups (visible or separate), teacher name should be the name of the teacher that is a member of the same group in which the student that views certificate is member of. If there are more than 1 teachers in the student's group, teacher field should display all teacher one under the other. Things could get a little bit more complicated if a student belongs to more than one group. That could be solved by implementing dropdown menu for choosing a group on the form where the View Certificate button is displayed to the student. This dropdown menu should be visible only if group mode is set in certificate activity. It should show only groups that a student belongs to. Teacher name field should display the name(s) of the teacher(s) that belong to chosen group.