“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Oliver Smitkowski -
Number of replies: 7

Hi everyone,

In one of our courses, we’ve set up multiple groups. Each group has at least one non-editing teacher assigned.

The course includes several quizzes, and these non-editing teachers need to be able to view how their assigned learners are performing. To do this, they access a quiz (e.g., /mod/quiz/view.php?id=1234) and click on "Results", which takes them to a page like /mod/quiz/report.php?id=1234.

Normally, they should see a dropdown labeled "Separate groups", where they can select the groups they are assigned to. At the bottom of the page, they should then see results for only the users in the currently selected group.

Screenshot of the top of a "results" page to a Moodle quiz

In most cases, this works as expected. However, for at least three out of 22 non-editing teachers, the "Separate groups" dropdown does not appear consistently. When it is missing, non-editing teachers end up seeing the results for all learners, which shouldn't happen given their group assignments.

We’re running Moodle 4.2.1 with three instances behind a load balancer. All instances share the same database, and automated tests confirm that the codebase is identical across them.

Could this be a known bug, or is there something we might have missed in our configuration?

Thanks in advance for any pointers!

Oliver

Average of ratings: -
In reply to Oliver Smitkowski

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Are the non-editing teachers assigned to the groups? Do they have the See All Groups permission removed? Is this happening across all courses - e.g. can another non-editing teacher in the same course see the dropdown? Is the course set to separate groups?
In reply to Emma Richardson

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Oliver Smitkowski -

Hi Emma,

The non-editing teachers are assigned to the groups they need to see. The moodle/site:accessallgroups capability is not set for this role. The course is set to separate groups. As far as we know so far, every non-editing teacher sometimes can see the dropdown. For at least three out of 22 non-editing teachers, the dropdown does not appear consistently. One person assumes this depends on whether they access the results from the course or from "Recently accessed items" on the dashboard, but I could not verify this with a test account.

Thank you
Oliver

In reply to Oliver Smitkowski

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Weird - try setting AccessAllGroups to Not Allow and see if that fixes it.
In reply to Emma Richardson

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Oliver Smitkowski -
You mean the moodle/site:accessallgroups capability , right? This is not (and never was) allowed for non-editing teachers in our system.
In reply to Oliver Smitkowski

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Oliver Smitkowski -
We assume now that there was no technical issue here. Instead,
  • the instructor had created several quizzes with very similar names, and
  • it seems that Moodle only allows results to be viewed by group membership if the corresponding group already exists when the quiz is created.
Average of ratings:Useful (1)
In reply to Oliver Smitkowski

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1) [Solved]

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Oliver, good to hear that you figured out the reason why the separate groups dropdown was sometimes missing. Thanks for sharing it, as it will likely help others who are wondering the same thing.

In reply to Oliver Smitkowski

“Separate groups” dropdown sometimes missing for non-editing teachers in quiz reports (Moodle 4.2.1)

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The second bullet point here is not correct.

After the quiz has been attempted, you can go and define groups and grouping, and then set the quiz to use those to display the results, if that is what you want.