Steps to reproduce:
- Create a course (or update an existing course) and set group mode to 'No groups' and 'Force group mode' to Yes.
- Go to the participants page.
- Enrol at least one user in the course.
Expected result: There should be no column for groups.
Actual result: There is a groups column with 'No groups' for each participant.